-
Notifications
You must be signed in to change notification settings - Fork 8
/
tslint.json
189 lines (189 loc) · 5.75 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
{
"extends": ["tslint:recommended", "tslint-angular", "tslint:latest", "tslint-config-prettier"],
"rulesDirectory": ["node_modules/codelyzer"],
"rules": {
"no-namespace": false,
"adjacent-overload-signatures": true,
"align": [true, "parameters", "statements"],
"array-type": [true, "array", "array-simple", "generic"],
"arrow-return-shorthand": true,
"arrow-parens": [true, "ban-single-arg-parens"],
"callable-types": true,
"class-name": true,
"comment-format": [
true,
"check-space",
"check-lowercase",
{
"ignore-words": ["TODO"]
}
],
"curly": true,
"comment-type": false,
"component-class-suffix": true,
"directive-class-suffix": true,
"deprecation": {
"severity": "warn"
},
"eofline": true,
"encoding": true,
"forin": true,
"file-name-casing": false,
"import-blacklist": [true, "rxjs/Rx", "rxjs/internal/operators"],
"import-spacing": true,
"indent": [true, "spaces"],
"interface-over-type-literal": true,
"interface-name": false,
"jsdoc-format": true,
"label-position": true,
"max-line-length": [true, 120],
"max-file-line-count": [true, 1000],
"member-access": [true, "check-accessor"],
"member-ordering": [
true,
{
"order": [
"public-instance-field",
"private-instance-field",
"public-static-field",
"public-static-method",
"private-static-field",
"private-static-method",
"public-constructor",
"public-instance-method",
"private-instance-method"
]
}
],
"newline-before-return": false,
"newline-per-chained-call": false,
"new-parens": true,
"no-arg": true,
"no-bitwise": true,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": [true, 1],
"no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
"no-construct": true,
"no-debugger": true,
"no-default-export": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-empty": false,
"no-empty-interface": true,
"no-eval": true,
"no-inferrable-types": [true, "ignore-params"],
"no-misused-new": true,
"no-null-keyword": false,
"no-non-null-assertion": false,
"no-shadowed-variable": true,
"no-submodule-imports": false,
"no-string-literal": false,
"no-string-throw": true,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-reference": true,
"no-redundant-jsdoc": true,
"no-return-await": true,
"no-require-imports": true,
"no-unnecessary-class": [true, "allow-constructor-only", "allow-static-only", "allow-empty-class"],
"no-unnecessary-initializer": true,
"no-unused-expression": [true, "allow-fast-null-checks"],
"no-var-keyword": true,
"no-dynamic-delete": true,
"no-object-literal-type-assertion": false,
"no-output-on-prefix": true,
"no-implicit-dependencies": false,
"no-invalid-this": false,
"no-invalid-template-strings": true,
"no-input-rename": true,
"no-output-rename": true,
"unified-signatures": true,
"object-literal-sort-keys": false,
"object-literal-shorthand": true,
"object-literal-key-quotes": [true, "as-needed"],
"only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
"one-line": [true, "check-open-brace", "check-else", "check-catch", "check-finally", "check-whitespace"],
"one-variable-per-declaration": [true, "ignore-for-loop"],
"ordered-imports": [
true,
{
"import-sources-order": "any",
"named-imports-order": "case-insensitive"
}
],
"return-undefined": false,
"prefer-function-over-method": [true, "allow-public", "allow-protected"],
"prefer-conditional-expression": true,
"prefer-const": true,
"prefer-method-signature": false,
"prefer-object-spread": true,
"prefer-template": true,
"prefer-while": true,
"prefer-for-of": true,
"quotemark": [true, "single", "avoid-escape"],
"radix": true,
"semicolon": [true, "always", "ignore-interfaces"],
"space-before-function-paren": [
true,
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always",
"method": "never",
"constructor": "never"
}
],
"space-within-parens": [true, 0],
"trailing-comma": [
true,
{
"multiline": "never",
"singleline": "never",
"esSpecCompliant": true
}
],
"triple-equals": [true, "allow-null-check"],
"typedef": [true, "call-signature", "property-declaration"],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"variable-name": [true, "check-format", "allow-leading-underscore", "ban-keywords"],
"use-lifecycle-interface": true,
"use-pipe-transform-interface": true,
"use-isnan": true,
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-type",
"check-typecast",
"check-preblock"
],
"contextual-lifecycle": true,
"template-i18n": false,
"no-forward-ref": true,
"no-lifecycle-call": true,
"no-unused-css": true,
"prefer-inline-decorator": false,
"prefer-output-readonly": true,
"use-pipe-decorator": true,
"angular-whitespace": false
}
}