0.0.0 • Published 8 years ago
eslint-plugin-seeact v0.0.0
eslint-plugin-seeact
You see a problem, act upon it. This eslint plugin was originally made since I wrote a plugin that wouldn't get accepted in the eslint-plugin-react, but I still kept hearing people wanted to use the rule. This is for you.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-seeact:
$ npm install eslint-plugin-seeact --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-seeact globally.
Usage
Add seeact to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
    "plugins": [
        "seeact"
    ]
}Then configure the rules you want to use under the rules section.
{
    "rules": {
        "seeact/rule-name": 2
    }
}Supported Rules
- seeact/no-access-state-in-setstate: Prevent using this.stateinsidethis.setState
License
ESLint-plugin-seeact is licensed under the MIT License.
0.0.0
8 years ago