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@procore/core-scripts@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-2842lintconfiglinter-configjest-preset-kyt-styledniuco-design-systemmicro-stylelint-confmember-easy-mobile-v1mfe-runtimedreacteasy-scriptseslit-rule-dddeokgsaasgrey-matter-react-scriptseslint-config-esplintfa-linterhappy_frontendrahpd-react-scriptsphongdang-publishing-to-npm@elliemae/pui-cli@eric.dahlseng/configuration-lint@eric.dahlseng/linter-configuration@groinder/stylelint-config@growcss/stylelint-config@equisoft/stylelint-config-styled-components@greenatom/dotfiles@frientrip/eslint-config-frip@htcoaching/config-stylelint@fatling/stylelint-config@ivanllanespasos/components-package@funpodium/stylelint-config-emotion@gearbox-protocol/stylelint-config@foxsocial/stylelint-config@focus21/stylelint-config@infinitebrahmanuniverse/nolb-stylelint-c@garantme/stylelint-config-styled-components@irvingjs/styled@jestaubach/stylelint-configvitau@mediamonks/stylelint-config-css-in-js@medly/stylelint-config@mcansh/eslint-config@kleros/katharitillery-react-scriptstrim-component-librarytmatix-pro-logintms-area-select@looker/stylelint-config@limina/stylelint-configwttj-config-front@hitagi/stylelint-config@holism/dotfiles@huckleberry-inc/eslint-config@edenspiekermann/stylelint-configsmashing-scriptsstylelint-config-breezrstylelint-config-foxsocialstylelint-config-test121stylelint-config-styled-friendlystylelint-config-styled-wemlionstylelint-config-webcube-styledstylelint-config-werk85stylelint-config-wombatswrec-menustylelint-config-ochostylelint-config-osedeastylelint-config-pajnstylelint-config-joaopedrodcfstylelint-config-joyent-portalstylelint-config-jupiter-app-styledstylelint-config-pavostylelint-config-seegnotest-widget-order-component@mudita/stylelint-config@mxcins/bedrock@leandromatos/stylelint-config
0.1.1

7 years ago