-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
103 lines (103 loc) · 2.31 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
{
"extends": "tslint-config-standard",
"rules": {
// commented out rules require a newer version of tslint than is currently available
//? rules with a comment and question mark might be worth enabling in future once code has been improved
"comment-format": false,
"no-eval": true,
"no-trailing-whitespace": [
true,
"ignore-comments"
],
"arrow-parens": [
true,
"ban-single-arg-parens"
],
"arrow-return-shorthand": [
true
],
"eofline": true,
"indent": [
true,
"spaces",
4
],
"ter-indent": [true, 4],
"linebreak-style": [
true,
"LF"
],
"max-line-length": [
true,
250
],
"new-parens": true,
"no-angle-bracket-type-assertion": true,
"no-consecutive-blank-lines": [
true,
2
],
"no-duplicate-variable": true,
//? "no-invalid-this": true,
"no-shadowed-variable": true,
"no-string-throw": true,
"no-unnecessary-initializer": true,
"no-unsafe-finally": true,
"no-unused-expression": [
true,
"allow-fast-null-checks"
],
"no-var-keyword": true,
"object-literal-key-quotes": [
true,
"consistent-as-needed"
],
"one-variable-per-declaration": [
true,
"ignore-for-loop"
],
//? "only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
"prefer-const": true,
//? "prefer-for-of": true,
"prefer-switch": true,
"quotemark": [
true,
"double",
"avoid-escape"
],
"semicolon": [
true,
"always"
],
"space-before-function-paren": [
true,
"always"
],
"trailing-comma": [
true,
{
"multiline": "never",
"singleline": "never"
}
],
//? "triple-equals": [true, "allow-null-check"],
"variable-name": [
true,
"ban-keywords"
],
"whitespace": [
true,
"check-branch",
// "check-decl", // Needs some ability to ignore declarations inside for loops before we want to add this restriction
"check-separator",
"check-type"
],
"ban-comma-operator": false,
"jsdoc-format": {
"options": "check-multiline-start"
},
"no-duplicate-switch-case": true,
"no-implicit-dependencies": true,
"no-return-await": true
}
}