1.2.0 • Published 6 years ago

custom-tslint-rules-collection v1.2.0

Weekly downloads
49
License
MIT
Repository
github
Last release
6 years ago

CustomTSLintRules

Custom TSLint rules .

GitHub issues GitHub forks GitHub stars dependency status Build Status GitHub license code style: prettier

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

  • tsx-no-any-props
  • tsx-no-any-state

License

CustomTSLintRules is freely distributable under the terms of the MIT license.