tslint-component-state-and-props-no-any
v1.0.5
Published
a lint to check if React Component's state or props is any. use any as state or props will make many runtime errors.
Downloads
6
Readme
a lint to check if React Component's state or props is any. use any as state or props will make many runtime errors.
Installation
Install dependencies:
yarn add tslint-component-state-and-props-no-any -D
Configure tslint to use the tslint-strict-null-checks folder. Add the following path to the rulesDirectory setting in your tslint.json file:
{
"rulesDirectory": [
"node_modules/tslint-component-state-and-props-no-any/rules"
],
"rules": {
...
}
}