-
Notifications
You must be signed in to change notification settings - Fork 17
/
tslint.json
76 lines (76 loc) · 2.4 KB
/
tslint.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"rulesDirectory": "./node_modules/dtslint/bin/rules/",
"rules": {
"deprecation": true,
"curly": true,
"eofline": false,
"forin": true,
"indent": [true, "spaces"],
"label-position": true,
"max-line-length": [false, 140],
"no-any": false,
"no-arg": true,
"no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
"no-construct": true,
"no-default-export": true,
"no-debugger": true,
"no-duplicate-variable": true,
"no-eval": true,
"no-trailing-whitespace": false,
"no-unused-variable": false,
"no-var-keyword": true,
"one-line": [true, "check-catch", "check-else", "check-whitespace"],
"radix": true,
"semicolon": [false, "always"],
"triple-equals": [true],
"variable-name": false,
"whitespace": [false, "check-branch", "check-decl", "check-operator", "check-separator"],
"no-inferred-empty-object-type": true,
"strict-boolean-expressions": [false, "allow-undefined-union", "allow-null-union", "ignore-rhs"],
"strict-type-predicates": [false],
"prefer-const": [true],
"prefer-readonly": [true],
"arrow-return-shorthand": [true, "multiline"],
"interface-over-type-literal": [true],
"no-angle-bracket-type-assertion": [true],
"no-unnecessary-callback-wrapper": [true],
"prefer-function-over-method": [true],
"prefer-template": [true],
"prefer-switch": [
true,
{
"min-cases": 2
}
],
"cyclomatic-complexity": [true, 20],
"no-unsafe-finally": true,
"adjacent-overload-signatures": true,
"prefer-for-of": true,
"ban-types": [
true,
["Object", "Use object instead."],
["String", "Use 'string' instead."],
["Number", "Use 'number' instead."],
["Boolean", "Use 'boolean' instead."]
],
"no-inferrable-types": true,
"no-invalid-template-strings": true,
"no-string-throw": true,
"no-internal-module": true,
"restrict-plus-operands": true,
"no-string-literal": false,
"unified-signatures": true,
"no-bitwise": true,
"no-empty": true,
"use-isnan": true,
"no-duplicate-imports": false,
"interface-name": false,
"no-unnecessary-qualifier": true,
"no-unbound-method": [true, "ignore-static"],
"number-literal-format": true,
"prefer-while": true,
"import-blacklist": [true, "aws-sdk", "funfix"],
"no-sparse-arrays": true,
"no-parameter-reassignment": true
}
}