-
Notifications
You must be signed in to change notification settings - Fork 3
/
tslint.json
101 lines (97 loc) · 2.41 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
{
"extends": [
"tslint:latest",
"tslint-eslint-rules",
"tslint-consistent-codestyle"
],
"rules": {
// Rules from tslint-consistent-codestyle
"no-collapsible-if": true,
"no-static-this": true,
"no-unused": true,
"no-var-before-return": true,
"prefer-const-enum": true,
"prefer-while": true,
// TSLint
"cyclomatic-complexity": [
true,
20
],
"interface-name": false,
"max-classes-per-file": false,
"max-file-line-count": [
true,
500
],
"member-access": false,
"no-angle-bracket-type-assertion": false,
"no-bitwise": false,
"no-for-in-array": true,
"no-invalid-this": true,
"no-irregular-whitespace": true,
"no-null-keyword": true,
"no-submodule-imports": [true, "lodash", "@ses/database"],
"no-switch-case-fall-through": true,
"no-unnecessary-callback-wrapper": true,
"no-unused-expression": false,
"object-literal-sort-keys": false,
"ordered-imports": false,
"quotemark": [
true,
"single"
],
"trailing-comma": false, // has bug
"typedef": [
true,
"call-signature"
],
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-rest-spread",
"check-type",
// "check-typecast",
"check-type-operator",
"check-preblock"
],
// Rules from tslint-eslint-rules
"handle-callback-err": [
true,
"^(err|error|anySpecificError)$"
],
"no-control-regex": true,
"no-duplicate-case": true,
"no-empty-character-class": true,
"no-ex-assign": true,
"no-extra-boolean-cast": true,
"no-extra-semi": true,
"no-implicit-dependencies": [true, "optional", "dev"],
"no-inner-declarations": [
true,
"functions"
],
"no-invalid-regexp": true,
"no-regex-spaces": true,
"no-unexpected-multiline": true,
"valid-typeof": true
// Below rules are not implemented in tslint-eslint-rules yet:
// "max-depth": [ true, 5 ],
// "max-statements": [true, 10, {"ignoreTopLevelFunctions": true}],
// "no-path-concat": true,
// "no-warning-comments": true,
// "prefer-template": true,
// "no-param-reassign": [true, {
// "props": false
// }],
}
}