-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
72 lines (70 loc) · 2.5 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
{
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"no-namespace": [true, "allow-declarations"],
"no-parameter-reassignment": true,
"no-reference": true,
"prefer-for-of": true,
"await-promise": true,
"ban-comma-operator": true,
"curly": true,
"no-arg": true,
"no-bitwise": true,
"no-conditional-assignment": true,
"no-construct": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
// I would like to have the following rules enabled, but unfortunately
// tslint doesn't support picking up "paths" from tsconfig,
// so enabling these rules causes a bunch of false
// positives that cannot be worked around in a reasonable way right now.
// See https://github.com/palantir/tslint/issues/3364 for dicussion.
"no-implicit-dependencies": false,
"no-submodule-imports": false,
"no-invalid-template-strings": true,
"no-invalid-this": true,
"no-return-await": true,
"no-string-throw": true,
"no-switch-case-fall-through": true,
"no-this-assignment": true,
"no-unnecessary-class": true,
"no-unsafe-finally": true,
"no-unused-expression": [true, "allow-fast-null-checks"],
"no-unused-variable": true,
"no-var-keyword": true,
"prefer-conditional-expression": true,
"prefer-object-spread": true,
"restrict-plus-operands": true,
"switch-default": true,
"triple-equals": [true, "allow-null-check", "allow-undefined-check"],
"use-isnan": true,
"cyclomatic-complexity": true,
"eofline": true,
"indent": [true, "tabs", 4],
"max-classes-per-file": [true, 1],
"no-duplicate-imports": true,
"object-literal-sort-keys": [true, "ignore-case"],
"prefer-const": true,
"array-type": [true, "array"],
"arrow-return-shorthand": true,
"class-name": true,
"comment-format": [true, "check-space"],
"interface-over-type-literal": true,
"jsdoc-format": true,
"newline-before-return": true,
"no-angle-bracket-type-assertion": true,
"no-boolean-literal-compare": true,
"no-consecutive-blank-lines": true,
"no-irregular-whitespace": true,
"no-trailing-whitespace": true,
"object-literal-key-quotes": [true, "as-needed"],
"ordered-imports": true,
"prefer-template": [true, "allow-single-concat"],
"quotemark": [true, "single"],
"semicolon": [true, "always"],
"whitespace": [true, "check-branch", "check-decl", "check-operator", "check-module", "check-separator", "check-rest-spread", "check-type", "check-typecast", "check-type-operator", "check-preblock"]
}
}