A shareable stylelint config for stylelint-processor-styled-components
Last updated 3 years ago by ismay .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install stylelint-config-styled-components 
SYNC missed versions from official npm registry.


The shareable stylelint config for stylelint-processor-styled-components

npm version build status greenkeeper badge


When using stylelint-processor-styled-components a couple of stylelint rules throw errors that you cannot prevent. Like 'no-empty-source' or 'no-missing-end-of-source-newline'.

This shareable config will automatically disable rules that cause unresolvable conflicts. Besides those rules vendor prefixed properties and values will throw an error since styled-components automatically generates vendor prefixes for your css. Note that if you want to change any of these rules you can always override them in your stylelint config.


npm install stylelint-config-styled-components --save-dev


After installing, add this config to your stylelint config like so:

  "extends": "stylelint-config-styled-components"

If you're extending multiple shareable configs, put this config as the last so it overrides the relevant rules in all previous configs:

  "extends": [

See also for documentation on the various ways stylelint can be configured.



Current Tags

  • 0.1.1                                ...           latest (3 years ago)

1 Versions

  • 0.1.1                                ...           3 years ago
Today 6
This Week 6
This Month 417
Last Day 4
Last Week 264
Last Month 856
Dependencies (0)
Dev Dependencies (3)
Dependents (122)

Copyright 2014 - 2016 © |