Skip to content

Instantly share code, notes, and snippets.

@splincode
Created April 29, 2019 18:37
Show Gist options
  • Save splincode/f896fb353debacc998b7b97146514591 to your computer and use it in GitHub Desktop.
Save splincode/f896fb353debacc998b7b97146514591 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