0.0.2 • Published 8 years ago
eslint-plugin-styled-components-config v0.0.2
eslint-plugin-styled-components-config
Eslint rules for styled-components config
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-styled-components-config:
$ npm install eslint-plugin-styled-components-config --save-devNote: 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
}
}