tslint-mango v0.1.12
TSLint preset
The recommended .prettierrc
is included, but must be installed manually.
This preset extends the following presets (in order):
- tslint:recommended
alexjoverm/tslint-config-prettier
Glavin001/tslint-clean-code
palantir/tslint-react
kaiza/tslint-jasmine-rules
cartant/tslint-etc
jwbay/tslint-misc-rules
- custom rules / tweaks
Rules
Here are the rules I use from each of the presets.
Unlisted presets have all of their rules used.
tslint-clean-code
"no-commented-out-code": true
tslint-react
These rules are described here.
"jsx-boolean-value": true
"jsx-curly-spacing": [true, "never"]
"jsx-equals-spacing": [true, "never"]
"jsx-self-close": true
"jsx-space-before-trailing-slash": true
"jsx-wrap-multiline": true
tslint-jasmine-rules
These rules are only warnings:
"no-focused-tests": true
"no-disabled-tests": true
tslint-etc
"no-unused-declaration": true
tslint-misc-rules
"class-method-newlines": true
"jsx-no-braces-for-string-attributes": true
"react-lifecycle-order": true
Custom rules
interface-member-separator
Enforce which character separates interface members.
Usage:
[true, ";"] # semicolon [true, ","] # comma [true, ""] # none
Has fixer? Yes