-
Notifications
You must be signed in to change notification settings - Fork 2
/
tslint.json
123 lines (117 loc) · 4.21 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
// https://palantir.github.io/tslint/rules/
// https://github.com/palantir/tslint/tree/master/src/configs
{
"defaultSeverity": "error",
"extends": ["tslint:latest"],
"jsRules": {},
"rules": {
// TypeScript Specific
"adjacent-overload-signatures": true,
"ban-types": false,
"member-access": false,
"member-ordering": false,
"no-any": false,
"no-empty-interface": false,
"no-import-side-effect": false,
"no-inferrable-types": [true, "ignore-params"],
"no-internal-module": true,
"no-magic-numbers": false,
"no-namespace": true,
"no-non-null-assertion": true,
"no-reference": true,
"no-this-assignment": [true,{"allow-destructuring": true}],
// Disallows the use of require statements except in import statements.
"no-var-requires": false,
"only-arrow-functions": false,
"promise-function-async": true,
"typedef": false,
"typedef-whitespace": false,
"unified-signatures": true,
// Functionality
"await-promise": true,
// "ban": no sensible default
"ban-comma-operator": true,
"curly": true,
"forin": true,
// "import-blacklist": no sensible default
"label-position": true,
"no-arg": true,
"no-bitwise": false,
"no-conditional-assignment": true,
"no-console": false,
"no-construct": true,
"no-debugger": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-floating-promises": false,
"no-for-in-array": true,
"no-implicit-dependencies": false,
"no-inferred-empty-object-type": false,
"no-invalid-template-strings": true,
// "no-invalid-this": Won't this be deprecated?
"no-misused-new": true,
"no-null-keyword": true,
"no-object-literal-type-assertion": true,
"no-return-await": true,
"no-shadowed-variable": false,
"no-string-literal": true,
"no-string-throw": true,
"no-sparse-arrays": true,
"no-submodule-imports": false,
"no-unbound-method": [ true, "ignore-static"],
"no-unnecessary-class": false,
"no-unsafe-any": false,
"no-unsafe-finally": true,
"no-unused-expression": true,
"no-unused-variable": true,
"no-use-before-declare": true,
"no-var-keyword": false,
"no-void-expression": false,
"prefer-conditional-expression": false,
"radix": true,
"restrict-plus-operands": true,
"strict-boolean-expressions": false,
"strict-type-predicates": false,
"switch-default": true,
"triple-equals": true,
"use-default-type-parameter": true,
"use-isnan": true,
// Maintainability
"cyclomatic-complexity": false,
"eofline": false,
"indent": [true, "spaces"],
"linebreak-style": [true, "CRLF"],
"max-classes-per-file": [false, 1],
"max-file-line-count": [true, 1024],
"max-line-length": false,
"no-default-export": true,
"no-duplicate-imports": true,
"no-irregular-whitespace": false,
"no-mergeable-namespace": true,
"no-parameter-reassignment": false,
"no-require-imports": false,
"object-literal-sort-keys": false,
"prefer-const": true,
"trailing-comma": false,
"no-consecutive-blank-lines": [true, 3],
// Style
"class-name": true,
"comment-format": [true, "check-space"],
"interface-name": [ true, "never-prefix"],
"one-line": [true, "check-open-brace", "check-whitespace" ],
"no-trailing-whitespace": [true, "ignore-template-strings"],
"one-variable-per-declaration": false,
"semicolon": false,
"space-before-function-paren": false,
"ordered-imports": false,
"no-unused-expression": false,
"prefer-for-of": false,
"align": [ "arguments", "elements", "members", "parameters" ],
// Miscelanious
"prefer-object-spread": false
},
"rulesDirectory": []
}