eslint-plugin-styled-components-config
v0.0.2
Published
Styled Components config checker
Downloads
3,291
Maintainers
Readme
eslint-plugin-styled-components-config
Eslint rules for styled-components config
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-styled-components-config
:
$ npm install eslint-plugin-styled-components-config --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-styled-components-config
globally.
Usage
Add display-name-required
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"styled-components-config"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"styled-components-config/rule-name": 2
}
}