Skip to content

Instantly share code, notes, and snippets.

@copperwalls
Created July 21, 2017 05:52
Show Gist options
  • Save copperwalls/83d8ab58d097ec2c5c86a515e4631166 to your computer and use it in GitHub Desktop.
Save copperwalls/83d8ab58d097ec2c5c86a515e4631166 to your computer and use it in GitHub Desktop.
TSLint example configuration
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended"
],
"jsRules": {},
"rules": {
"cyclomatic-complexity": true,
"encoding": true,
"indent": [
true,
"spaces",
2
],
"linebreak-style": [
true,
"LF"
],
"newline-before-return": true,
"no-default-export": true,
"no-irregular-whitespace": true,
"no-magic-numbers": true,
"no-non-null-assertion": true,
"no-null-keyword": true,
"no-require-imports": true,
"no-switch-case-fall-through": true,
"no-this-assignment": true,
"no-unnecessary-callback-wrapper": true,
"number-literal-format": true,
"prefer-conditional-expression": true,
"prefer-switch": true,
"switch-default": true,
"triple-equals": true
},
"rulesDirectory": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment