Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

tslint-component-state-and-props-no-any

ezbuyfe14MIT1.0.5

a lint to check if React Component's state or props is any. use any as state or props will make many runtime errors.

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": {
     ...
   }
}