-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
43 lines (41 loc) · 1.23 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
{
"defaultSeverity": "error",
"extends": ["tslint:all"],
"jsRules": {},
"rules": {
// can turn on just for double-checking
"comment-format": false,
"completed-docs": false,
"cyclomatic-complexity": false,
"no-console": false,
"no-magic-numbers": false,
"no-non-null-assertion": false, // typescript is not always able to know, which is the whole point of the assertion operator
"no-unbound-method": false,
"prefer-function-over-method": false,
// warning
"deprecation": {"severity": "warning"},
// always active
"increment-decrement": false,
"linebreak-style": false, // git takes care of this
"max-classes-per-file": false,
"member-ordering": [true, { "order": "fields-first" }],
"newline-per-chained-call": false,
"no-bitwise": false,
"object-literal-sort-keys": [true, "match-declaration-order"],
"switch-default": false,
"trailing-comma": [
true,
{
"multiline": "always",
"esSpecCompliant": true
}
],
"typedef": [
true, // noImplicitAny or strict covers the rest
"call-signature",
"arrow-call-signature"
],
"variable-name": [true, "allow-leading-underscore"]
},
"rulesDirectory": []
}