16.8.2 • Published 2 months ago

stylelint v16.8.2

Weekly downloads
2,625,226
License
MIT
Repository
github
Last release
2 months ago

Stylelint

npm version Build Status npm downloads

A mighty CSS linter that helps you avoid errors and enforce conventions.

Features

It's mighty as it:

  • has over 100 built-in rules for modern CSS syntax and features
  • supports plugins so you can create your own custom rules
  • automatically fixes problems where possible
  • supports shareable configs that you can create or extend
  • can be customized to your exact needs
  • has 15k unit tests making it robust
  • is trusted by companies worldwide like Google and GitHub

And it can be extended to:

  • extract embedded styles from HTML, Markdown and CSS-in-JS template literals
  • parse CSS-like languages like SCSS, Sass, Less and SugarSS

How it'll help you

It'll help you avoid errors, for example:

  • invalid things, e.g. malformed grid areas
  • valid things that are problematic, e.g. duplicate selectors
  • unknown things, e.g. misspelled property names

And enforce conventions, for example:

  • disallow things, e.g. specific units
  • enforce naming patterns, e.g. for custom properties
  • set limits, e.g. the number of ID selectors
  • specify notations, e.g. for modern color functions

We recommend using a pretty printer like Prettier alongside Stylelint. Linters and pretty printers are complementary tools that work together to help you write consistent and error-free code.

Example output

Example

Guides

Contributors

Stylelint is maintained by volunteers. Without the code contributions from all these fantastic people, Stylelint would not exist. Become a contributor.

Sponsors

Thank you to all our sponsors! Become a sponsor.

Backers

Thank you to all our backers! Become a backer.

Website hosting

Deploys by Netlify

License

The MIT License.

@yattho/stylelint-configvite-plugin-lintxcc-standard-stylelint@lintdog/caddi-core-ui@lintdog/stylelint-config@she11sh0cked/stylelint-config@obstinate/react-script@obstinate/vue-script@eui/deps-base@vividcat/broom@insites/cli@nmacarthur/reveal@critto/styles@corabank/ibanking@knapsack-cloud/msk-design-system@xverse/matrix-code-generatorui-portalnora-setup@maiscrm/stylelint-config-frontend@qhnu/ts-lib-templatenoodles-norm@mikestopcontinues/postcss-config-contourgrav-plugin-webpackertrs-vue-clinlisgo-pattern-libraryreact-antd-scripts-neweslint-config-imagemstylelint-plugin-ege-standard@kolesa-group/stylelint-configstylelint-ege-standardgatsby-starter-emulsify-drupal@quantumblack/carbon-charts@quantumblack/react-starterege-iconfontkolesa-group-stylelint-configcwiconfontkg-stylelint-configstylelint-config-bigpopakaplipemat-postcss-boilerplateiamnewton-stylelint-config@rock-kit/ui-scripts@rock-kit/ui-stylelint-config@rock-kit/ui-webpack-configplum-fabricmo-foundation-base@arzyu/zeropack-cssstylelint-config-pack@schm-dt/frontend@schm-dt/ui-componentsprotocol-theme-teststylelint-config-fernandopasik@dry-stack/devtools@sirius-black/taro-clistylelint-config-enfemulsify-design-system@phpfox/stylelint-configconnexstyleguide@e_ops/mizarstatamic-addon-webpackerwebhelp-template@shubhanshu-works/lintersstylelint-postcss-ajx@qinshixixing/webpackeslint-config-demingdemingreact-scripts-diaverum-common@dlwlrma/ngx-linter-formatter@kzx/stylelint-config@deboxsoft/devel-react@alotool/bloggerpackorder-tracking-appgrch-scripts8haodi-font-end-check-configfont-end-check-config-8haodiauto-too-clireduxideming-linterawm-lint-utilslintstaged-config-airlight@somoscuatro/gulp-wordpress-theme@logo-software/bootstrap@ebullience/stylelint-config@startrco/slate-tools@ucraft/tools@willhayes/want-cli@verzola/bass@layerise/lint@minato-css/minato-css-0sfra-webpack-builder@selfagencyllc/sass-startertzar-componentstzar-corecra-template-gtja-czcra-template-ltbycecra-template-cz-test@fundamend/builder-archetype-staticcgdemouixr3-spokexrchat-spokekbc-ui-cli-v2
16.6.1

4 months ago

16.6.0

4 months ago

16.7.0

3 months ago

16.8.2

2 months ago

16.8.1

2 months ago

16.8.0

2 months ago

16.5.0

5 months ago

16.4.0

5 months ago

16.3.1

6 months ago

16.3.0

6 months ago

16.2.1

8 months ago

16.2.0

9 months ago

16.1.0

9 months ago

16.0.2

10 months ago

16.0.1

10 months ago

16.0.0

10 months ago

16.0.0-0

11 months ago

16.0.0-1

11 months ago

16.0.0-2

11 months ago

16.0.0-3

10 months ago

15.11.0

12 months ago

15.7.0

1 year ago

15.8.0

1 year ago

15.6.3

1 year ago

15.10.3

1 year ago

15.10.1

1 year ago

15.10.2

1 year ago

15.10.0

1 year ago

15.9.0

1 year ago

15.0.0

2 years ago

15.5.0

1 year ago

15.6.1

1 year ago

15.6.0

1 year ago

15.6.2

1 year ago

15.3.0

2 years ago

15.4.0

2 years ago

15.1.0

2 years ago

15.2.0

2 years ago

14.14.1

2 years ago

14.14.0

2 years ago

14.16.1

2 years ago

14.16.0

2 years ago

14.15.0

2 years ago

14.12.1

2 years ago

14.12.0

2 years ago

14.13.0

2 years ago

14.9.1

2 years ago

14.9.0

2 years ago

14.11.0

2 years ago

14.8.3

2 years ago

14.8.4

2 years ago

14.8.5

2 years ago

14.10.0

2 years ago

14.8.1

2 years ago

14.8.2

2 years ago

14.8.0

2 years ago

14.6.0

3 years ago

14.6.1

3 years ago

14.7.0

2 years ago

14.7.1

2 years ago

14.5.0

3 years ago

14.5.1

3 years ago

14.5.2

3 years ago

14.5.3

3 years ago

14.2.0

3 years ago

14.3.0

3 years ago

14.4.0

3 years ago

14.1.0

3 years ago

14.0.1

3 years ago

14.0.0-0

3 years ago

14.0.0

3 years ago

13.13.0

3 years ago

13.13.1

3 years ago

13.12.0

4 years ago

13.11.0

4 years ago

13.10.0

4 years ago

13.9.0

4 years ago

13.8.0

4 years ago

13.7.2

4 years ago

13.7.1

4 years ago

13.7.0

4 years ago

13.6.1

4 years ago

13.6.0

4 years ago

13.5.0

4 years ago

13.4.1

4 years ago

13.4.0

4 years ago

13.3.3

4 years ago

13.3.2

4 years ago

13.3.1

4 years ago

13.3.0

5 years ago

13.2.1

5 years ago

13.2.0

5 years ago

13.1.0

5 years ago

13.0.0

5 years ago

12.0.1

5 years ago

12.0.0

5 years ago

11.1.1

5 years ago

11.1.0

5 years ago

11.0.0

5 years ago

10.1.0

5 years ago

10.0.1

5 years ago

10.0.0

5 years ago

9.10.1

6 years ago

9.10.0

6 years ago

9.9.0

6 years ago

9.8.0

6 years ago

9.7.1

6 years ago

9.7.0

6 years ago

9.6.0

6 years ago

9.5.0

6 years ago

9.4.0

6 years ago

9.3.0

6 years ago

9.2.1

6 years ago

9.2.0

7 years ago

9.1.3

7 years ago

9.1.2

7 years ago

9.1.1

7 years ago

9.1.0

7 years ago

9.0.0

7 years ago

8.4.0

7 years ago

8.3.1

7 years ago

8.3.0

7 years ago

8.2.0

7 years ago

8.1.1

7 years ago

8.1.0

7 years ago

8.0.0

7 years ago

7.13.0

7 years ago

7.12.0

7 years ago

7.11.1

7 years ago

7.11.0

7 years ago

7.10.1

8 years ago

7.10.0

8 years ago

7.9.0

8 years ago

7.8.0

8 years ago

7.7.1

8 years ago

7.7.0

8 years ago

7.6.0

8 years ago

7.5.0

8 years ago

7.4.2

8 years ago

7.4.1

8 years ago

7.4.0

8 years ago

7.3.1

8 years ago

7.3.0

8 years ago

7.2.0

8 years ago

7.1.0

8 years ago

7.0.3

8 years ago

7.0.2

8 years ago

7.0.1

8 years ago

7.0.0

8 years ago

6.9.0

8 years ago

6.8.0

8 years ago

6.7.1

8 years ago

6.7.0

8 years ago

6.6.0

8 years ago

6.5.1

8 years ago

6.5.0

8 years ago

6.4.2

8 years ago

6.4.1

8 years ago

6.4.0

8 years ago

6.3.3

8 years ago

6.3.2

8 years ago

6.3.1

8 years ago

6.3.0

8 years ago

6.2.2

8 years ago

6.2.1

8 years ago

6.2.0

8 years ago

6.1.1

8 years ago

6.1.0

8 years ago

6.0.3

8 years ago

6.0.2

8 years ago

6.0.1

8 years ago

6.0.0

8 years ago

5.4.0

8 years ago

5.3.0

8 years ago

5.2.1

9 years ago

5.2.0

9 years ago

5.1.0

9 years ago

5.0.1

9 years ago

5.0.0

9 years ago

4.5.1

9 years ago

4.5.0

9 years ago

4.4.0

9 years ago

4.3.6

9 years ago

4.3.5

9 years ago

4.3.4

9 years ago

4.3.3

9 years ago

4.3.2

9 years ago

4.3.1

9 years ago

4.3.0

9 years ago

4.2.0

9 years ago

4.1.0

9 years ago

4.0.0

9 years ago

3.2.3

9 years ago

3.2.2

9 years ago

3.2.1

9 years ago

3.2.0

9 years ago

3.1.4

9 years ago

3.1.3

9 years ago

3.1.2

9 years ago

3.1.1

9 years ago

3.1.0

9 years ago

3.0.3

9 years ago

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.3.7

9 years ago

2.3.6

9 years ago

2.3.5

9 years ago

2.3.4

9 years ago

2.3.3

9 years ago

2.3.2

9 years ago

2.3.1

9 years ago

2.3.0

9 years ago

2.2.0

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.8.0

9 years ago

0.7.0

9 years ago

0.6.2

9 years ago

0.6.1

9 years ago

0.6.0

9 years ago

0.5.0

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.0

10 years ago