Skip to content

Instantly share code, notes, and snippets.

@peterver
Last active November 17, 2016 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterver/34983fdeaef79fb178598d34c6a06ddd to your computer and use it in GitHub Desktop.
Save peterver/34983fdeaef79fb178598d34c6a06ddd to your computer and use it in GitHub Desktop.
Standard TSLint Configuration
{
"rulesDirectory": "node_modules/tslint-eslint-rules/dist/rules",
"rules" : {
"align" : ["parameters", "arguments", "statements"],
"array-bracket-spacing" : [true, "never"],
"arrow-parens" : true,
"brace-style" : true,
"comment-format": [true, "check-space", "check-uppercase"],
"curly" : true,
"cyclomatic-complexity": [true, 15],
"eofline" : true,
"interface-name": [true, "always-prefix"],
"forin" : true,
"indent" : true,
"linebreak-style": [true, "LF"],
"max-classes-per-file": [true, 5],
"max-line-length": [true, 120],
"new-parens" : true,
"no-arg" : true,
"no-consecutive-blank-lines" : true,
"no-console": true,
"no-construct": true,
"no-conditional-assignment" : true,
"no-default-export" : true,
"no-duplicate-variable": true,
"no-empty" : true,
"no-eval": true,
"no-invalid-this": true,
"no-irregular-whitespace" : true,
"no-null-keyword": true,
"no-multi-spaces" : true,
"no-require-imports" : true,
"no-shadowed-variable" : true,
"no-string-literal" : true,
"no-switch-case-fall-through" : true,
"no-trailing-whitespace" : true,
"no-unreachable" : true,
"no-unsafe-finally" : true,
"no-unused-expression" : true,
"no-unused-new" : true,
"no-use-before-declare" : true,
"no-var-keyword" : true,
"object-literal-sort-keys" : true,
"object-literal-key-quotes": [true, "as-needed"],
"object-literal-shorthand": true,
"one-variable-per-declaration" : true,
"ordered-imports" : true,
"quotemark" : [true, "single", "avoid-escape"],
"semicolon" : true,
"switch-default" : true,
"trailing-comma" : true,
"triple-equals" : true,
"valid-typeof" : true,
"variable-name": [true, "ban-keywords"],
"use-isnan" : true,
"whitespace" : [true, "check-branch", "check-decl", "check-operator", "check-module", "check-separator"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment