Skip to content

A collection of custom TSLint rules, all of which are disabled by default; devs can choose which rules to enable. The ones that can be easily fixed have fixers.

License

ttrushin/tslint-custom-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  }
}

About

A collection of custom TSLint rules, all of which are disabled by default; devs can choose which rules to enable. The ones that can be easily fixed have fixers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published