-
Notifications
You must be signed in to change notification settings - Fork 281
/
tslint.json
164 lines (164 loc) · 5.68 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
{
"extends": ["tslint-plugin-prettier"],
"linterOptions": {
"exclude": ["config/**/*.js", "node_modules/**/*.ts", "coverage/lcov-report/*.js", "src/charting_library/*"]
},
"rules": {
"quotemark": [true, "single", "jsx-double"],
"no-magic-numbers": false,
"jsx-no-lambda": false,
"no-submodule-imports": false,
"no-object-literal-type-assertion": false,
"cyclomatic-complexity": false,
"no-mixed-operators": false,
"no-unexpected-multiline": false,
"arrow-parens": false,
"interface-name": [true, "never-prefix"],
"indent": [true, "spaces", 4],
"react/jsx-indent": [4, 4],
"semicolon": [true, "always", "strict-bound-class-methods"],
"no-console": true,
"ban": [
true,
"eval",
{
"name": "$",
"message": "please don't"
},
["describe", "only"],
{
"name": ["it", "only"],
"message": "don't focus tests"
},
{
"name": ["chai", "assert", "equal"],
"message": "Use 'strictEqual' instead."
},
{
"name": ["*", "forEach"],
"message": "Use a regular for loop instead."
}
],
"adjacent-overload-signatures": true,
"member-access": true,
"member-ordering": [
true,
{
"order": [
"public-static-field",
"public-instance-field",
"public-constructor",
"private-static-field",
"private-instance-field",
"private-constructor",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}
],
"no-empty-interface": true,
"no-inferrable-types": true,
"no-internal-module": true,
"no-namespace": [true, "allow-declarations"],
"no-parameter-reassignment": true,
"only-arrow-functions": true,
"prefer-for-of": true,
"promise-function-async": true,
"await-promise": true,
"ban-comma-operator": true,
"curly": true,
"import-blacklist": [true, "lodash"],
"label-position": true,
"no-arg": true,
"no-construct": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-duplicate-variable": [true, "check-parameters"],
"no-dynamic-delete": true,
"no-empty": true,
"no-floating-promises": true,
"no-invalid-this": [true, "check-function-in-method"],
"no-misused-new": true,
"no-return-await": true,
"no-shadowed-variable": true,
"no-sparse-arrays": true,
"no-string-literal": 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-var-keyword": true,
"no-void-expression": [true, "ignore-arrow-function-shorthand"],
"prefer-conditional-expression": [true, "check-else-if"],
"prefer-object-spread": true,
"radix": true,
"restrict-plus-operands": true,
"strict-type-predicates": true,
"switch-default": true,
"triple-equals": true,
"use-default-type-parameter": true,
"use-isnan": true,
"deprecation": true,
"eofline": true,
"linebreak-style": false,
"max-classes-per-file": [true, 1],
"max-line-length": [
true,
{
"limit": 80,
"ignore-pattern": "/*|//"
}
],
"no-default-export": true,
"no-duplicate-imports": true,
"no-mergeable-namespace": true,
"prefer-const": true,
"object-literal-sort-keys": false,
"trailing-comma": false,
"array-type": [true, "array-simple"],
"arrow-return-shorthand": true,
"binary-expression-operand-order": true,
"callable-types": true,
"class-name": true,
"comment-format": [
true,
"check-lowercase",
{
"ignore-words": ["TODO", "HACK"]
}
],
"encoding": true,
"import-spacing": true,
"interface-over-type-literal": true,
"new-parens": true,
"no-angle-bracket-type-assertion": true,
"no-boolean-literal-compare": true,
"no-consecutive-blank-lines": [true, 2],
"no-irregular-whitespace": true,
"no-trailing-whitespace": true,
"no-unnecessary-callback-wrapper": true,
"no-unnecessary-initializer": true,
"no-unnecessary-qualifier": true,
"number-literal-format": true,
"object-literal-key-quotes": [true, "as-needed"],
"object-literal-shorthand": false,
"one-line": [true, "check-catch", "check-finally", "check-else"],
"one-variable-per-declaration": [true, "ignore-for-loop"],
"prefer-switch": [
true,
{
"min-cases": 2
}
],
"prefer-template": true,
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-pascal-case"],
"whitespace": [true, "check-branch", "check-operator", "check-typecast"],
"no-any": false,
"no-var-requires": false,
"ordered-imports": true,
"newline-before-return": true
}
}