What is Stylelint?
A mighty, modern CSS linter that helps you enforce consistent conventions and avoid errors in your stylesheets.
Stylelint is a tool in the Code Review category of a tech stack.
Stylelint is an open source tool with 11.1K GitHub stars and 937 GitHub forks. Here’s a link to Stylelint's open source repository on GitHub
Who uses Stylelint?
Companies
96 companies reportedly use Stylelint in their tech stacks, including wadiz, Frontend, and EnergySage.
Developers
270 developers on StackShare have stated that they use Stylelint.
Pros of Stylelint
5
1
Decisions about Stylelint
Here are some stack decisions, common use cases and reviews by companies and developers who chose Stylelint in their tech stack.
Carlos Benavides
Scenario: I want to integrate Prettier in our code base which is currently using ESLint (for .js and .scss both). The project is using gulp.
It doesn't feel quite right to me to use ESLint, I wonder if it would be better to use Stylelint or Sass Lint instead.
I completed integrating ESLint + Prettier, Planning to do the same with [ Stylelint || Sasslint || EsLint] + Prettier.
And have gulp 'fix' on file save (Watcher).
Any recommendation is appreciated.
Stylelint Alternatives & Comparisons
What are some alternatives to Stylelint?
Prettier
Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
Sass Lint
It is a Node-only Sass linter for both sass and scss syntax. It can be run through a command line interface. Special comments can be used to disable and enable certain rules throughout your source files in a variety of scenarios.
ESLint
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
scss-lint
It is a tool to help keep your SCSS files clean and readable by running it against a collection of configurable linter rules. You can run it manually from the command line, or integrate it into your SCM hooks.
TSLint
An extensible static analysis tool that checks TypeScript code for readability, maintainability, and functionality errors. It is widely supported across modern editors & build systems and can be customized with your own lint rules, configurations, and formatters.