@zaihui/eslint-plugin-react
v2.1.2
Published
react eslint rules
Downloads
10
Readme
@zaihui/eslint-plugin-react
base eslint rules
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install @zaihui/eslint-plugin-react
:
$ npm install @zaihui/eslint-plugin-react --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install @zaihui/eslint-plugin-react
globally.
Usage
Add @zaihui/vue
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"@zaihui/react"
]
}
Choose suitable configuration.
{
"extends": [
"plugin:@zaihui/react/base"
]
}