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-devUsage
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
4 years ago
0.6.0
4 years ago
0.5.5
5 years ago
0.5.4
5 years ago
0.5.3
5 years ago
0.5.2
6 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
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago