Files
react/compiler/packages/eslint-plugin-react-forget
Lauren Tan 48e709e7ad [eslint] Add test for classes
This used to cause issues because I hadn't configured Babel in the eslint plugin 
properly, so adding this as a regression test
2023-11-03 16:32:53 -04:00
..
2023-11-03 16:32:53 -04:00
2023-11-02 12:43:35 -04:00

eslint-plugin-react-forget

ESLint plugin for React Forget

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-react-forget:

npm install eslint-plugin-react-forget --save-dev

Usage

Add react-forget to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "react-forget"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "react-forget/rule-name": 2
    }
}

Rules

TODO: Run eslint-doc-generator to generate the rules list.