/
tslint.json
77 lines (77 loc) · 2.76 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
{
"extends": "tslint:latest",
"linterOptions": {
"exclude": ["./src/js/3rdparty/**/*"]
},
"rules": {
"array-type": [true, "generic"],
"arrow-parens": [true, "ban-single-arg-parens"],
"max-classes-per-file": [true, 3],
"max-line-length": [false],
"member-access": [false],
"member-ordering": [true, {
"order": [
"private-static-field",
"private-instance-field",
"private-constructor",
"protected-static-field",
"protected-instance-field",
"protected-constructor",
"public-static-field",
"public-instance-field",
"public-constructor"
]
}],
"no-angle-bracket-type-assertion": false,
"no-console": {
"severity": "warning",
"options": ["debug", "info", "log", "time", "timeEnd", "trace"]
},
"no-implicit-dependencies": { /* As the app is split into two packages, this will give false positives… kinda */
"severity": "warning"
},
"no-invalid-template-strings": { /* Is used for a reason at oneShotWebGL */
"severity": "warning"
},
"no-misused-new": false, /* Because of buggy tslint */
"no-object-literal-type-assertion": false,
"no-shadowed-variable": {
"severity": "warning"
},
"no-string-literal": false, /* Because of buggy tslint */
"no-var-keyword": false,
"no-var-requires": false,
"object-literal-sort-keys": false,
"one-variable-per-declaration": false,
"ordered-imports": false,
"prefer-for-of": false, /* Because of buggy tslint */
"quotemark": [true, "single"],
"trailing-comma": [
false, {
"multiline": {
"objects": "never",
"arrays": "never",
"functions": "never",
"typeLiterals": "ignore"
},
"esSpecCompliant": true
}
],
"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": "nospace"
}
],
"whitespace": [true, "check-branch", "check-preblock", "check-separator", "check-module"]
}
}