Skip to content

Instantly share code, notes, and snippets.

@iamclaytonray
Last active August 29, 2018 01:53
Show Gist options
  • Save iamclaytonray/1d3ccb269b1cb00a411e08c20383d65e to your computer and use it in GitHub Desktop.
Save iamclaytonray/1d3ccb269b1cb00a411e08c20383d65e to your computer and use it in GitHub Desktop.
Every single rule for a tslint.json file
{
"defaultSeverity": "error",
"rules": {
"adjacent-overload-signatures": true,
"align": true,
"array-type": true,
"arrow-parens": true,
"arrow-return-shorthand": true,
"await-promise": true,
"ban": true,
"ban-comma-operator": true,
"ban-types": true,
"binary-expression-operand-order": true,
"callable-types": true,
"class-name": true,
"comment-format": true,
"completed-docs": true,
"curly": true,
"cyclomatic-complexity": true,
"deprecation": true,
"encoding": true,
"eofline": true,
"file-header": true,
"forin": true,
"import-blacklist": true,
"import-spacing": true,
"indent": true,
"interface-name": true,
"interface-over-type-literal": true,
"jsdoc-format": true,
"label-position": true,
"linebreak-style": true,
"match-default-export-name": true,
"max-classes-per-file": true,
"max-file-line-count": true,
"max-line-length": true,
"member-access": true,
"member-ordering": true,
"new-parens": true,
"newline-before-return": true,
"newline-per-chained-call": true,
"no-angle-bracket-type-assertion": true,
"no-any": true,
"no-arg": true,
"no-bitwise": true,
"no-boolean-literal-compare": true,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": true,
"no-console": true,
"no-construct": true,
"no-debugger": true,
"no-default-export": true,
"no-duplicate-imports": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-duplicate-variable": true,
"no-dynamic-delete": true,
"no-empty": true,
"no-empty-interface": true,
"no-eval": true,
"no-floating-promises": true,
"no-for-in-array": true,
"no-implicit-dependencies": true,
"no-import-side-effect": true,
"no-inferrable-types": true,
"no-inferred-empty-object-type": true,
"no-internal-module": true,
"no-invalid-template-strings": true,
"no-invalid-this": true,
"no-irregular-whitespace": true,
"no-magic-numbers": true,
"no-mergeable-namespace": true,
"no-misused-new": true,
"no-namespace": true,
"no-non-null-assertion": true,
"no-null-keyword": true,
"no-object-literal-type-assertion": true,
"no-parameter-properties": true,
"no-parameter-reassignment": true,
"no-redundant-jsdoc": true,
"no-reference": true,
"no-reference-import": true,
"no-require-imports": true,
"no-return-await": true,
"no-shadowed-variable": true,
"no-sparse-arrays": true,
"no-string-literal": true,
"no-string-throw": true,
"no-submodule-imports": true,
"no-switch-case-fall-through": true,
"no-this-assignment": true,
"no-trailing-whitespace": true,
"no-unbound-method": true,
"no-unnecessary-callback-wrapper": true,
"no-unnecessary-class": true,
"no-unnecessary-initializer": true,
"no-unnecessary-qualifier": true,
"no-unnecessary-type-assertion": true,
"no-unsafe-any": true,
"no-unsafe-finally": true,
"no-unused-expression": true,
"no-unused-variable": true,
"no-use-before-declare": true,
"no-var-keyword": true,
"no-var-requires": true,
"no-void-expression": true,
"number-literal-format": true,
"object-literal-key-quotes": true,
"object-literal-shorthand": true,
"object-literal-sort-keys": true,
"one-line": true,
"one-variable-per-declaration": true,
"only-arrow-functions": true,
"ordered-imports": true,
"prefer-conditional-expression": true,
"prefer-const": true,
"prefer-for-of": true,
"prefer-function-over-method": true,
"prefer-method-signature": true,
"prefer-object-spread": true,
"prefer-readonly": true,
"prefer-switch": true,
"prefer-template": true,
"promise-function-async": true,
"quotemark": true,
"radix": true,
"restrict-plus-operands": true,
"return-undefined": true,
"semicolon": true,
"space-before-function-paren": true,
"space-within-parens": true,
"strict-boolean-expressions": true,
"strict-type-predicates": true,
"switch-default": true,
"switch-final-break": true,
"trailing-comma": true,
"triple-equals": true,
"type-literal-delimiter": true,
"typedef": true,
"typedef-whitespace": true,
"typeof-compare": true,
"unified-signatures": true,
"use-default-type-parameter": true,
"use-isnan": true,
"variable-name": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment