0.1.0 • Published 5 years ago
eslint-plugin-react-classname v0.1.0
eslint-plugin-react-classname
Check using class as classname in render
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-react-classname:
$ npm install eslint-plugin-react-classname --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-react-classname globally.
Usage
Add react-classname to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"react-classname"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"react-classname/rule-name": 2
}
}Supported Rules
- Fill in provided rules here
0.1.0
5 years ago