0.7.0 • Published 3 years ago
eslint-plugin-resub v0.7.0
eslint-plugin-resub
ReSub specific linting rules for ESLint
Installation
$ npm i eslint-plugin-resub @typescript-eslint/parser --save-dev
Usage
Add resub
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"parser": "@typescript-eslint/parser",
"plugins": ["resub"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"resub/override-calls-super": "error",
"resub/no-state-access": "error"
}
}
Or extend recommended config
{
"extends": "plugin:resub/recommended"
}
Rules
Name | Description |
---|---|
no-state-access | Disallow state accsess in ReSub componentWillMount |
override-calls-super | Require super calls in overridden methods argument |
License and Copyright
This software is released under the terms of the MIT license.
0.7.0
3 years ago
0.6.1
3 years ago
0.6.0
4 years ago
0.5.5
4 years ago
0.5.4
5 years ago
0.5.3
5 years ago
0.5.2
5 years ago
0.5.1
6 years ago
0.5.0
6 years ago
0.4.1
6 years ago
0.3.1
6 years ago
0.3.0
6 years ago
0.2.0
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago