custom-tslint-rules-collection

1.2.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i custom-tslint-rules-collection

Weekly Downloads

6

Version

1.2.0

License

MIT

Unpacked Size

21.4 kB

Total Files

26

Last publish

Collaborators

  • thundernet8