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

1.0.5 • Public • 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.

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

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

2

Version

1.0.5

License

MIT

Unpacked Size

18.2 kB

Total Files

10

Last publish

Collaborators

  • ezbuyfe