-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
190 lines (188 loc) · 5.33 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
{
"defaultSeverity": "error",
"extends": ["tslint:latest", "tslint-config-prettier"],
"rulesDirectory": ["./node_modules/tslint-clean-code/dist/src"],
"jsRules": {},
"rules": {
"array-type": [true, "array"],
"arrow-return-shorthand": false,
"await-promise": false,
"adjacent-overload-signatures": false,
"align": [false],
"arrow-parens": false,
"ban": false,
"callable-types": true,
"class-name": false,
"comment-format": [false],
"completed-docs": [false],
"curly": true,
"cyclomatic-complexity": [true, 30],
"eofline": false,
"file-header": [false],
"forin": true,
"id-length": [false, ["K", "T", "U", "P", "R", "i", "j", "k", "_"]],
"import-blacklist": false,
"import-spacing": true,
"interface-name": true,
"interface-over-type-literal": false,
"jsdoc-format": false,
"label-position": true,
"linebreak-style": [true, "LF"],
"max-classes-per-file": [false, 2],
"max-file-line-count": [true, 1500],
"max-line-length": [
true,
{ "limit": 100, "ignore-pattern": "^import {(.*?)}|//" }
],
"max-func-args": [true, 4],
"member-access": true,
"member-ordering": [false],
"min-class-cohesion": false,
"new-parens": true,
"newspaper-order": true,
"no-angle-bracket-type-assertion": false,
"no-any": false,
"no-arg": true,
"no-bitwise": true,
"no-boolean-literal-compare": false,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": [true],
"no-console": [false, "debug", "info", "log", "time", "timeEnd", "trace"],
"no-construct": true,
"no-debugger": true,
"no-default-export": false,
"no-duplicate-super": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-empty-interface": false,
"no-empty-interfaces": false,
"no-empty-line-after-opening-brace": false,
"no-eval": true,
"no-flag-args": true,
"no-floating-promises": false,
"no-for-in-array": false,
"no-for-each-push": true,
"no-import-side-effect": true,
"no-inferrable-types": false,
"no-inferred-empty-object-type": false,
"no-internal-module": false,
"no-invalid-template-strings": true,
"no-invalid-this": true,
"no-magic-numbers": false,
"no-mergeable-namespace": false,
"no-misused-new": true,
"no-namespace": false,
"no-null-keyword": false,
"no-parameter-properties": false,
"no-reference": true,
"no-reference-import": true,
"no-require-imports": false,
"no-shadowed-variable": [
true,
{
"class": true,
"enum": true,
"function": true,
"interface": false,
"namespace": false,
"typeAlias": false,
"typeParameter": false
}
],
"no-sparse-arrays": true,
"no-string-literal": true,
"no-string-throw": true,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unbound-method": false,
"no-unnecessary-callback-wrapper": true,
"no-unnecessary-initializer": true,
"no-unnecessary-qualifier": false,
"no-unsafe-any": false,
"no-unsafe-finally": true,
"no-unsupported-browser-code": false,
"no-unused-expression": true,
"no-use-before-declare": false,
"no-var-keyword": true,
"no-var-requires": true,
"no-void-expression": false,
"object-literal-key-quotes": [true, "as-needed"],
"object-literal-shorthand": false,
"object-literal-sort-keys": false,
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"one-variable-per-declaration": true,
"only-arrow-functions": [
true,
"allow-declarations",
"allow-named-functions"
],
"ordered-imports": [false],
"prefer-const": true,
"prefer-for-of": false,
"prefer-function-over-method": true,
"strict-type-predicates": false,
"promise-function-async": false,
"quotemark": [true, "double", "avoid-escape"],
"radix": false,
"restrict-plus-operands": false,
"semicolon": [false, "never"],
"space-before-function-paren": false,
"strict-boolean-expressions": false,
"switch-default": false,
"trailing-comma": [
true,
{
"singleline": "never",
"multiline": {
"objects": "never",
"arrays": "never",
"functions": "never",
"imports": "never",
"exports": "never",
"typeLiterals": "never"
}
}
],
"triple-equals": [true, "allow-null-check"],
"try-catch-first": false,
"typedef": [
true,
"parameter",
"property-declaration",
"member-variable-declaration"
],
"typedef-whitespace": [false],
"unified-signatures": true,
"use-isnan": true,
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-trailing-underscore",
"allow-pascal-case"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
],
"no-map-without-usage": true,
"no-complex-conditionals": [true, 2],
"prefer-dry-conditionals": [true, 2],
"no-feature-envy": [true, 5, ["_", "ts"]],
"no-commented-out-code": false
},
"linterOptions": {
"exclude": ["./dist", "*.js", "./node_modules"]
}
}