Skip to content

Instantly share code, notes, and snippets.

@RomainBitard
Forked from splincode/tslint.js
Created September 11, 2019 15:57
Show Gist options
  • Save RomainBitard/8a08bdc6671afb4fb1f71b2f29d1d978 to your computer and use it in GitHub Desktop.
Save RomainBitard/8a08bdc6671afb4fb1f71b2f29d1d978 to your computer and use it in GitHub Desktop.
// npm install tslint-immutable --save-dev
// tslint.json
{
"extends": ["tslint-immutable"],
"rules": {
// Recommended built-in rules
"no-var-keyword": true,
"no-parameter-reassignment": true,
"typedef": [true, "call-signature"],
// Immutability rules
"readonly-keyword": true,
"readonly-array": true,
"no-let": true,
"no-object-mutation": true,
"no-delete": true,
"no-method-signature": true,
// Functional style rules
"no-this": true,
"no-class": true,
"no-mixed-interface": true,
"no-expression-statement": true,
"no-if-statement": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment