- Notifications
You must be signed in to change notification settings - Fork9
ESlint's rules for styled components 💅
License
tinloof/eslint-plugin-better-styled-components
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Auto fixable ESlint's rules for styled components.
You'll first need to installESLint:
$ npm i eslint --save-dev
Next, installeslint-plugin-better-styled-components
:
$ npm install eslint-plugin-better-styled-components --save-dev
Note: If you installed ESLint globally (using the-g
flag) then you must also installeslint-plugin-better-styled-components
globally.
Addbetter-styled-components
to the plugins section of your.eslintrc
configuration file. You can omit theeslint-plugin-
prefix:
{"plugins": ["better-styled-components" ]}
Then configure the rules you want to use under the rules section.
{"plugins": ["better-styled-components" ],"rules": {"better-styled-components/sort-declarations-alphabetically":2 }}
- 🔤
sort-declarations-alphabetically
: auto fixable rule that enforces alphabetically sorted declarations.
Unless otherwise specified this project is licensed underApache License Version 2.0.
About
ESlint's rules for styled components 💅
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Contributors4
Uh oh!
There was an error while loading.Please reload this page.