0.1.1 • Published 7 years ago

stylelint-config-styled-components v0.1.1

Weekly downloads
308,801
License
MIT
Repository
github
Last release
7 years ago

stylelint-config-styled-components

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

npm version build status greenkeeper badge

Why

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.

Installation

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

Usage

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": [
    "stylelint-config-standard",
    "stylelint-config-styled-components"
  ]
}

See also https://stylelint.io/user-guide/configuration for documentation on the various ways stylelint can be configured.

License

MIT

@lintdog/caddi-core-ui@corabank/ibankingstylelint-config-bigpopakap@schm-dt/frontend@schm-dt/ui-components@phpfox/stylelint-config@deboxsoft/devel-react@ucraft/tools@layerise/lintcra-template-gtja-czcra-template-ltbycecra-template-cz-testxr3-spokexrchat-spoketest-widget-orderstylelint-config-growcss@mediamonks/porter-react-skeletoncustom-react-scripts-graphql@furdzik/stylelint-config@befluent/linter@befluentclass/linterart47influmy-lint@everything-registry/sub-chunk-2842member-easy-mobile-v1wttj-config-fronttest-widget-order-componentswrec-menuvitau@appmint/dataform@primerai/stylelint-config-sentio-appmfe-runtimelintconfiglinter-confighappy_frontendgrey-matter-react-scriptsjest-preset-kyt-styledgsaasniuco-design-systempd-react-scriptsphongdang-publishing-to-npmrahstylelint-config-craglintstylelint-config-foxsocialstylelint-config-joaopedrodcfstylelint-config-joyent-portalstylelint-config-jupiter-app-styledstylelint-config-osedeastylelint-config-pajnstylelint-config-ochostylelint-config-breezrstylelint-config-werk85stylelint-config-wombatstylelint-config-webcube-styledstylelint-config-test121stylelint-config-styled-friendlystylelint-config-styled-wemlionstylelint-config-seegnostylelint-config-pavosmashing-scriptstillery-react-scriptstms-area-selecttmatix-pro-logintrim-component-library@speira/lint@arquivei/stylelint@aprets/config@atir-naveed-geeksltd/stylelint-config@alicloud/stylelint-config@bamdadsabbagh/stylelint-config@basalt/crux-assets@bigpopakap/stylelint-config@brudi-toolbox/react@brudi-toolbox/styled-components-dev@brudi/brudi-toolbox-react@burst/stylelint-config@byte-craft-react/stylelint-config@caddijp/stylelint-config@bszx/standard@cid-harvard/stylelint-config@chocolab/configs@abdullahceylan/stylelint-config@coko/lint@codes-and-coffees/react-pkg@codeplant-de/stylelint-config@dfds-ui/stylelint-config@fatling/stylelint-config@edenspiekermann/stylelint-config@growcss/stylelint-config@greenatom/dotfiles@groinder/stylelint-config@foxsocial/stylelint-config@focus21/stylelint-config@huckleberry-inc/eslint-config@htcoaching/config-stylelint@hitagi/stylelint-config@holism/dotfiles@elliemae/pui-cli@garantme/stylelint-config-styled-components@gearbox-protocol/stylelint-config
0.1.1

7 years ago