ReSub specific linting rules for ESLint
$ npm i eslint-plugin-resub @typescript-eslint/parser --save-dev
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"
}
}{
"extends": "plugin:resub/recommended"
}| Name | Description |
|---|---|
no-state-access |
Disallow state accsess in ReSub componentWillMount |
override-calls-super |
Require super calls in overridden methods argument |
This software is released under the terms of the MIT license.