custom-tslint-rules-collection
v1.2.0
Published
Custom TSLint rules
Downloads
13
Readme
CustomTSLintRules
Custom TSLint rules .
Install
npm install custom-tslint-rules-collection --save-dev
or
yarn add custom-tslint-rules-collection --dev
Usage
custom-tslint-rules has peer dependencies on TSLint and TypeScript.
To use these lint rules with the default preset, use configuration inheritance via the extends keyword. Here's a sample configuration where tslint.json lives adjacent to your node_modules folder:
{
"extends": ["tslint:latest", "custom-tslint-rules-collection"],
"rules": {
// override custom-tslint-rules rules here
"tsx-no-any-props": false
}
}
To lint your .ts and .tsx files you can simply run tslint -c tslint.json 'src/*/.{ts,tsx}'.
Rules
- [x]
tsx-no-any-props
- [x]
tsx-no-any-state
License
CustomTSLintRules is freely distributable under the terms of the MIT license.