2019-09-11 13:48:03 +00:00
|
|
|
{
|
|
|
|
"extends": ["tslint:latest"],
|
|
|
|
"rules": {
|
|
|
|
"adjacent-overload-signatures": true,
|
|
|
|
"array-type": [
|
|
|
|
true,
|
|
|
|
"generic"
|
|
|
|
],
|
|
|
|
"arrow-parens": true,
|
|
|
|
"arrow-return-shorthand": true,
|
|
|
|
"await-promise": true,
|
|
|
|
"ban": [true, {
|
|
|
|
"message": "use lodash isString",
|
|
|
|
"name": ["util", "isString"]
|
|
|
|
}, {
|
|
|
|
"message": "use lodash isNil",
|
|
|
|
"name": ["util", "isNullOrUndefined"]
|
|
|
|
}],
|
|
|
|
"ban-comma-operator": true,
|
|
|
|
"ban-types": true,
|
|
|
|
"class-name": true,
|
|
|
|
"curly": true,
|
|
|
|
"cyclomatic-complexity": [
|
|
|
|
true,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"deprecation": true,
|
|
|
|
"eofline": true,
|
|
|
|
"increment-decrement": true,
|
|
|
|
"indent": [true, "spaces", 2],
|
|
|
|
"interface-name": [
|
|
|
|
true,
|
|
|
|
"never-prefix"
|
|
|
|
],
|
|
|
|
"max-classes-per-file": [
|
2019-09-12 00:29:51 +00:00
|
|
|
false,
|
2019-09-11 13:48:03 +00:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"max-file-line-count": 250,
|
|
|
|
"max-line-length": [
|
|
|
|
true,
|
|
|
|
180
|
|
|
|
],
|
|
|
|
"member-access": true,
|
|
|
|
"member-ordering": [
|
|
|
|
true,
|
|
|
|
{
|
|
|
|
"order": [
|
|
|
|
"public-static-method",
|
|
|
|
"public-static-field",
|
|
|
|
"public-instance-field",
|
|
|
|
"protected-instance-field",
|
|
|
|
"public-constructor",
|
|
|
|
"public-instance-method",
|
|
|
|
"protected-instance-method"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"new-parens": true,
|
|
|
|
"no-angle-bracket-type-assertion": true,
|
|
|
|
"no-arg": true,
|
|
|
|
"no-bitwise": false,
|
|
|
|
"no-boolean-literal-compare": true,
|
|
|
|
"no-conditional-assignment": true,
|
|
|
|
"no-console": true,
|
|
|
|
"no-construct": true,
|
|
|
|
"no-dead-store": false,
|
|
|
|
"no-debugger": true,
|
|
|
|
"no-default-export": true,
|
|
|
|
"no-default-import": true,
|
|
|
|
"no-duplicate-super": true,
|
|
|
|
"no-duplicate-variable": true,
|
|
|
|
"no-empty-interface": true,
|
|
|
|
"no-floating-promises": true,
|
|
|
|
"no-for-in-array": true,
|
|
|
|
"no-implicit-dependencies": false,
|
|
|
|
"no-inferred-empty-object-type": true,
|
|
|
|
"no-inferrable-types": [
|
|
|
|
true,
|
|
|
|
"ignore-params",
|
|
|
|
"ignore-properties"
|
|
|
|
],
|
|
|
|
"no-internal-module": true,
|
|
|
|
"no-invalid-this": true,
|
|
|
|
"no-irregular-whitespace": true,
|
|
|
|
"no-magic-numbers": [
|
|
|
|
true,
|
|
|
|
-1, 0,
|
|
|
|
1, 2, 3, 4, 5, 6, 7, 8, 9,
|
|
|
|
10, 20, 30, 40, 50, 60, 70, 80, 90,
|
|
|
|
100
|
|
|
|
],
|
|
|
|
"no-misused-new": true,
|
|
|
|
"no-namespace": true,
|
|
|
|
"no-non-null-assertion": true,
|
|
|
|
"no-null-keyword": true,
|
|
|
|
"no-parameter-properties": true,
|
|
|
|
"no-parameter-reassignment": true,
|
|
|
|
"no-return-await": true,
|
|
|
|
"no-shadowed-variable": true,
|
|
|
|
"no-sparse-arrays": true,
|
|
|
|
"no-string-literal": true,
|
|
|
|
"no-string-throw": true,
|
|
|
|
"no-submodule-imports": false,
|
|
|
|
"no-unbound-method": true,
|
|
|
|
"no-unused-expression": true,
|
|
|
|
"no-var-keyword": true,
|
|
|
|
"no-void-expression": true,
|
|
|
|
"prefer-conditional-expression": false,
|
|
|
|
"prefer-const": true,
|
|
|
|
"prefer-for-of": true,
|
|
|
|
"prefer-readonly": true,
|
|
|
|
"prefer-switch": true,
|
|
|
|
"quotemark": [
|
|
|
|
true,
|
|
|
|
"single",
|
|
|
|
"jsx-double",
|
|
|
|
"avoid-escape"
|
|
|
|
],
|
|
|
|
"radix": true,
|
|
|
|
"restrict-plus-operands": true,
|
|
|
|
"strict-boolean-expressions": true,
|
|
|
|
"strict-type-predicates": true,
|
|
|
|
"switch-default": true,
|
|
|
|
"trailing-comma": [
|
|
|
|
true,
|
|
|
|
{
|
|
|
|
"multiline": "always",
|
|
|
|
"singleline": "never"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"triple-equals": true,
|
|
|
|
"unnecessary-constructor": true,
|
|
|
|
"use-default-type-parameter": true,
|
|
|
|
"use-isnan": true,
|
|
|
|
"variable-name": [
|
|
|
|
true,
|
|
|
|
"ban-keywords",
|
|
|
|
"check-format"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"jsRules": {
|
|
|
|
"curly": true,
|
|
|
|
"trailing-comma": [
|
|
|
|
true,
|
|
|
|
{
|
|
|
|
"multiline": "never",
|
|
|
|
"singleline": "never"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"rulesDirectory": []
|
|
|
|
}
|