Created
August 7, 2018 07:13
-
-
Save pierredup/4cde3bd0098e2a5f04795d6abc3ff6ab to your computer and use it in GitHub Desktop.
Standard TSLint Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"defaultSeverity": "error", | |
"extends": [ | |
"tslint:recommended", | |
"tslint-eslint-rules" | |
], | |
"rules": { | |
"array-type": [true, "array-simple"], | |
"adjacent-overload-signatures": true, | |
"arrow-parens": true, | |
"arrow-return-shorthand": true, | |
"ban-comma-operator": true, | |
"binary-expression-operand-order": true, | |
"callable-types": true, | |
"class-name": true, | |
"comment-format": [true, "check-space", "check-lowercase", {"ignore-words": ["TODO"]}], | |
"cyclomatic-complexity": true, | |
"encoding": true, | |
"eofline": true, | |
"file-header": [true, "Copyright \\(c\\) MiWay Insurance Ltd"], | |
"file-name-casing": [true, "camel-case"], | |
"forin": true, | |
"import-spacing": true, | |
"indent": [true, "spaces", 4], | |
"jsdoc-format": true, | |
"label-position": true, | |
"linebreak-style": [true, "LF"], | |
"member-access": [true, "check-accessor", "check-parameter-property"], | |
"member-ordering": [true, {"order": "fields-first"}], | |
"newline-before-return": true, | |
"newline-per-chained-call": true, | |
"new-parens": true, | |
"no-consecutive-blank-lines": true, | |
"no-duplicate-imports": true, | |
"no-duplicate-super": true, | |
"no-duplicate-switch-case": true, | |
"no-eval": true, | |
"no-invalid-template-strings": true, | |
"no-irregular-whitespace": true, | |
"no-magic-numbers": true, | |
"no-parameter-properties": true, | |
"no-redundant-jsdoc": true, | |
"no-reference-import": true, | |
"no-reference": true, | |
"no-shadowed-variable": true, | |
"no-string-throw": true, | |
"no-trailing-whitespace": [true, "ignore-template-strings"], | |
"no-unnecessary-callback-wrapper": true, | |
"no-unnecessary-initializer": true, | |
"no-unsafe-finally": true, | |
"no-var-keyword": true, | |
"no-var-requires": true, | |
"number-literal-format": true, | |
"object-literal-key-quotes": [true, "consistent"], | |
"object-literal-shorthand": true, | |
"one-line": [true, "check-catch", "check-finally", "check-else", "check-open-brace", "check-whitespace"], | |
"ordered-imports": true, | |
"prefer-conditional-expression": [true, "check-else-if"], | |
"prefer-const": true, | |
"prefer-for-of": true, | |
"prefer-method-signature": true, | |
"prefer-switch": true, | |
"prefer-template": [true, "allow-single-concat"], | |
"radix": true, | |
"semicolon": [true, "always"], | |
"space-before-function-paren": true, | |
"switch-final-break": [true, "always"], | |
"trailing-comma": [true, {"multiline": "always", "singleline": "never"}], | |
"triple-equals": true, | |
"typedef": [true, "call-signature", "arrow-call-signature", "parameter", "arrow-parameter", "property-declaration", "variable-declaration", "member-variable-declaration", "object-destructuring", "array-destructuring"], | |
"type-literal-delimiter": true, | |
"quotemark": [true, "single"], | |
"unified-signatures": true, | |
"use-isnan": true, | |
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"], | |
"whitespace": [true, "check-branch", "check-decl", "check-operator", "check-module", "check-separator", "check-rest-spread", "check-type", "check-typecast", "check-type-operator", "check-preblock"] | |
}, | |
"rulesDirectory": [ | |
"node_modules/tslint-eslint-rules/dist/rules" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment