0.0.1 • Published 4 years ago

eslint-plugin-react-flow v0.0.1

Weekly downloads
16
License
MIT
Repository
github
Last release
4 years ago

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