1.0.3 • Published 6 years ago

tslint-custom-rules v1.0.3

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

tslint-custom-rules

A collection of custom TSLint rules, all of which are disabled by default; devs can choose which rules to enable

Usage

Install:

// Yarn
yarn add tslint-custom-rules --dev

// npm
npm install tslint-custom-rules --save-dev

Extend the rules from your tslint.json file.

{
  "extends": "tslint-custom-rules"
}

All rules are disabled by default. Enable any rules that you want to use. Example:

{
  "extends": "tslint-custom-rules",
  "rules": {
    "favor-async-to-new-promises": true,
    "react-disallow-nil-in-value-props": true,
    "react-dont-mutate-props": true,
    "react-dont-mutate-state": true,
    "react-sort-jsx-element-attributes": true,
    "sort-interfaces": true
  }
}
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago