-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
97 lines (97 loc) · 2.59 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
{
"rules" : {
"no-any" : true,
"no-empty-interface": true,
"only-arrow-functions": [
true,
"allow-declarations"
],
"prefer-for-of": true,
"no-for-in-array": true,
"no-construct": true,
"no-duplicate-super": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-invalid-this": true,
"no-unused-variable": [
true,
"react",
{ "ignore_pattern": "^_" }
],
"no-use-before-declare": true,
"no-var-keyword": true,
"restrict-plus-operands": true,
"strict-type-predicates": true,
"switch-default": true,
"triple-equals": true,
"typeof-compare": true,
"use-isnan": true,
"eofline": true,
"indent": [
true,
"spaces"
],
"no-require-imports": true,
"prefer-const": true,
"trailing-comma": [
true,
{ "multiline": "never", "singleline": "never" }
],
"arrow-return-shorthand": [
true
],
"class-name": true,
"comment-format": [
true,
{ "ignore-words": [ "TODO" ] }
],
"interface-name": [
true,
"always-prefix"
],
"interface-over-type-literal": true,
"no-angle-bracket-type-assertion": true,
"no-boolean-literal-compare": true,
"no-consecutive-blank-lines": [
true,
2
],
"no-trailing-whitespace": true,
"object-literal-shorthand": true,
"one-variable-per-declaration": [ true ],
"prefer-method-signature": true,
"quotemark": [
true,
"single",
"avoid-escape"
],
"semicolon": [
true,
"always"
],
"space-before-function-paren": [
true,
{ "anonymous": "never", "named": "never", "asyncArrow": "always", "method": "never", "constructor": "never" }
],
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-pascal-case"
],
"max-file-line-count": [
true,
280 // general rule of thumb for code maintainability
],
"max-line-length": [
true,
160 // no lengthy ternaries
],
"align": [
true,
"statements"
],
"newline-before-return": true
}
}