The Wayback Machine - https://web.archive.org/web/20201020103405/https://github.com/stylelint/stylelint
Skip to content
master
Go to file
Code

Latest commit

* Refactor formatter tests

I think that using `stripIndent()` or adding extra indent for the expected output
of the formatters leads to inaccuracy and poor readability.
So, this change removes needless indent from the expected output
in `lib/formatters/__tests__/*.test.js`.

* Use `.trimStart()` for readability
6ad94ac

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
Sep 15, 2019

README.md

stylelint

NPM version Build Status NPM Downloads

A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.

Features

It's mighty as it:

  • understands the latest CSS syntax including custom properties and level 4 selectors
  • extracts embedded styles from HTML, markdown and CSS-in-JS object & template literals
  • parses CSS-like syntaxes like SCSS, Sass, Less and SugarSS
  • has over 170 built-in rules to catch errors, apply limits and enforce stylistic conventions
  • supports plugins so you can create your own rules or make use of plugins written by the community
  • automatically fixes the majority of stylistic violations
  • is well tested with over 15000 unit tests
  • supports shareable configs that you can extend or create
  • is unopinionated so that you can customize it to your exact needs
  • has a growing community and is used by Facebook, GitHub and WordPress

Example output

Example

Getting started

You'll find steps to get started in our User guide.

Contributors

Without the contributions from all these fantastic people, stylelint would not exist. Become a contributor.

Backers

Thank you to all our backers! Become a backer.

Sponsors

Support this project to show your logo here with a link to your website. Become a sponsor.

License

The MIT License.

You can’t perform that action at this time.