-
Notifications
You must be signed in to change notification settings - Fork 4
/
tslint.json
60 lines (60 loc) · 2.1 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
{
"rules": {
// same order as https://palantir.github.io/tslint/rules/
// TypeScript specific rules
"no-inferrable-types": true,
"no-reference": true,
"no-unnecessary-type-assertion": true,
"prefer-for-of": true,
// Functionality rules
"await-promise": true,
"curly": [true, "ignore-same-line"],
"label-position": true,
"no-arg": true,
"no-construct": true,
"no-duplicate-super": true,
"no-duplicate-variable": true,
"no-empty": false,
"no-eval": true,
"no-floating-promises": false, // see https://github.com/palantir/tslint/issues/2879
"no-for-in-array": true,
"no-inferred-empty-object-type": true,
"no-invalid-template-strings": true,
"no-misused-new": true,
"no-shadowed-variable": false,
"no-switch-case-fall-through": true,
"no-sparse-arrays": true,
"no-string-throw": true,
"no-unsafe-finally": true,
"no-unused-expression": [true, "allow-fast-null-checks"],
"no-var-keyword": true,
"prefer-object-spread": true,
"triple-equals": [true, "allow-null-check"],
"use-isnan": true,
// Maintainability rules
"indent": [true, "spaces", 4],
"max-line-length": [true, 200],
"prefer-const": true,
// Style rules
"trailing-comma": [
true,
{
"multiline": "always",
"singleline": "never"
}
],
"arrow-parens": [true, "ban-single-arg-parens"],
"arrow-return-shorthand": true,
"class-name": true,
"encoding": true,
"new-parens": true,
"no-boolean-literal-compare": true,
"no-consecutive-blank-lines": true,
"no-irregular-whitespace": true,
"no-unnecessary-callback-wrapper": true,
"ordered-imports": [true],
"quotemark": [true, "single", "avoid-escape"],
"semicolon": [true, "always"],
"variable-name": [true, "check-format", "ban-keywords", "allow-leading-underscore"]
}
}