eslint-plugin-cleaner-react-components
v0.0.0
Published
Adds opinionated strict rules to scaffold the React components classes
Downloads
1
Maintainers
Readme
eslint-plugin-cleaner-react-components
Adds opinionated strict rules to scaffold the React components classes
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-cleaner-react-components
:
npm install eslint-plugin-cleaner-react-components --save-dev
Usage
Add cleaner-react-components
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"cleaner-react-components"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"cleaner-react-components/rule-name": 2
}
}
Rules
TODO: Run eslint-doc-generator to generate the rules list.