0.0.1 • Published 5 years ago
eslint-plugin-react-flow v0.0.1
eslint-plugin-react-flow
Eslint flow type specific rules for React project
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-react-flow
:
$ npm install eslint-plugin-react-flow --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-react-flow
globally.
Usage
Add react-flow
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"react-flow"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"react-flow/rule-name": 2
}
}
Supported Rules
- Fill in provided rules here
0.0.1
5 years ago