165 lines
5.0 KiB
JSON
165 lines
5.0 KiB
JSON
{
|
|
"$schema": "http://json.schemastore.org/tslint",
|
|
"rules": {
|
|
"adjacent-overload-signatures": true,
|
|
"ban-types": false,
|
|
"member-access": false,
|
|
"member-ordering": [true, { "order": [
|
|
"public-static-field",
|
|
"public-static-method",
|
|
|
|
"protected-static-field",
|
|
"protected-static-method",
|
|
|
|
"private-static-field",
|
|
"private-static-method",
|
|
|
|
"public-instance-field",
|
|
"protected-instance-field",
|
|
"private-instance-field",
|
|
|
|
"public-constructor",
|
|
"public-instance-method",
|
|
|
|
"protected-constructor",
|
|
"protected-instance-method",
|
|
|
|
"private-constructor",
|
|
"private-instance-method"
|
|
]}],
|
|
"no-any": false,
|
|
"no-empty-interface": false,
|
|
"no-import-side-effect": true,
|
|
"no-inferrable-types": false,
|
|
"no-internal-module": true,
|
|
"no-magic-numbers": false,
|
|
"no-namespace": true,
|
|
"no-non-null-assertion": false,
|
|
"no-reference": true,
|
|
"no-var-requires": true,
|
|
"only-arrow-functions": false,
|
|
"prefer-for-of": true,
|
|
"promise-function-async": false,
|
|
"typedef": [true, "call-signature", "parameter", "property-declaration", "member-variable-declaration"],
|
|
"typedef-whitespace": [true, {
|
|
"call-signature": "nospace",
|
|
"index-signature": "nospace",
|
|
"parameter": "nospace",
|
|
"property-declaration": "nospace",
|
|
"variable-declaration": "nospace"
|
|
}, {
|
|
"call-signature": "space",
|
|
"index-signature": "space",
|
|
"parameter": "space",
|
|
"property-declaration": "space",
|
|
"variable-declaration": "space"
|
|
}],
|
|
"unified-signatures": true,
|
|
|
|
"await-promise": true,
|
|
"ban": false,
|
|
"curly": true,
|
|
"forin": true,
|
|
"import-blacklist": false,
|
|
"label-position": true,
|
|
"no-arg": true,
|
|
"no-bitwise": true,
|
|
"no-conditional-assignment": true,
|
|
"no-console": false,
|
|
"no-construct": true,
|
|
"no-debugger": true,
|
|
"no-duplicate-super": true,
|
|
"no-duplicate-variable": true,
|
|
"no-empty": false,
|
|
"no-eval": true,
|
|
"no-floating-promises": true,
|
|
"no-for-in-array": true,
|
|
"no-inferred-empty-object-type": true,
|
|
"no-invalid-template-strings": true,
|
|
"no-invalid-this": false,
|
|
"no-misused-new": true,
|
|
"no-null-keyword": false,
|
|
"no-shadowed-variable": false,
|
|
"no-sparse-arrays": true,
|
|
"no-string-literal": true,
|
|
"no-string-throw": true,
|
|
"no-switch-case-fall-through": true,
|
|
"no-unbound-method": false,
|
|
"no-unsafe-any": false,
|
|
"no-unsafe-finally": true,
|
|
"no-unused-expression": true,
|
|
"no-unused-variable": [true, "check-parameters"],
|
|
"no-use-before-declare": false,
|
|
"no-var-keyword": true,
|
|
"no-void-expression": [true, "ignore-arrow-function-shorthand"],
|
|
"radix": false,
|
|
"restrict-plus-operands": true,
|
|
"strict-boolean-expressions": false,
|
|
"strict-type-predicates": true,
|
|
"switch-default": false,
|
|
"triple-equals": true,
|
|
"typeof-compare": true,
|
|
"use-isnan": true,
|
|
|
|
"cyclomatic-complexity": false,
|
|
"eofline": true,
|
|
"indent": [true, "tabs"],
|
|
"linebreak-style": [true, "LF"],
|
|
"max-classes-per-file": false,
|
|
"max-file-line-count": false,
|
|
"max-line-length": false,
|
|
"no-default-export": true,
|
|
"no-mergeable-namespace": true,
|
|
"no-require-imports": true,
|
|
"object-literal-sort-keys": false,
|
|
"prefer-const": [true, { "destructuring": "all" }],
|
|
"trailing-comma": [true, { "multiline": "always", "singleline": "never" }],
|
|
|
|
"align": [true, "statements"],
|
|
"array-type": [true, "array"],
|
|
"arrow-parens": [true, "ban-single-arg-parens"],
|
|
"arrow-return-shorthand": true,
|
|
"callable-types": true,
|
|
"class-name": true,
|
|
"comment-format": [true, "check-space"],
|
|
"completed-docs": false,
|
|
"file-header": ["true", "Copyright \\d{4}"],
|
|
"import-spacing": true,
|
|
"interface-name": [true, "never-prefix"],
|
|
"interface-over-type-literal": false,
|
|
"jsdoc-format": true,
|
|
"match-default-export-name": true,
|
|
"newline-before-return": false,
|
|
"new-parens": true,
|
|
"no-angle-bracket-type-assertion": true,
|
|
"no-boolean-literal-compare": true,
|
|
"no-consecutive-blank-lines": true,
|
|
"no-parameter-properties": false,
|
|
"no-reference-import": true,
|
|
"no-trailing-whitespace": true,
|
|
"no-unnecessary-callback-wrapper": true,
|
|
"no-unnecessary-initializer": true,
|
|
"no-unnecessary-qualifier": true,
|
|
"object-literal-key-quotes": [true, "as-needed"],
|
|
"object-literal-shorthand": true,
|
|
"one-line": [true, "check-open-brace", "check-whitespace"],
|
|
"one-variable-per-declaration": true,
|
|
"ordered-imports": [true, { "import-sources-order": "case-insensitive", "named-imports-order": "case-insensitive" }],
|
|
"prefer-function-over-method": [true, "allow-public", "allow-protected"],
|
|
"prefer-method-signature": true,
|
|
"prefer-template": [true, "allow-single-concat"],
|
|
"quotemark": [true, "double", "avoid-escape"],
|
|
"return-undefined": true,
|
|
"space-before-function-paren": [true, {
|
|
"anonymous": "always",
|
|
"named": "never",
|
|
"asyncArrow": "always",
|
|
"method": "never",
|
|
"constructor": "never"
|
|
}],
|
|
"semicolon": [true, "always"],
|
|
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"],
|
|
"whitespace": [true, "check-branch", "check-decl", "check-operator", "check-module", "check-separator", "check-type", "check-typecast", "check-preblock"]
|
|
}
|
|
}
|