-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
84 lines (84 loc) · 2.22 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
{
"extends": [
"tslint-config-airbnb",
"tslint-react-hooks",
"tslint:recommended",
"tslint-sonarts",
"prettier"
],
"rules": {
"radix": false,
"semicolon": [true, "never"],
"no-underscore-dangle": false,
"no-shadowed-variable": false,
"ordered-imports": false,
"no-empty-interface": false,
"import-name": false,
"variable-name": false,
"ban-types": false,
"align": [true, "parameters", "statements"],
"max-line-length": [
true,
{ "limit": 150, "ignore-pattern": "^import |^export {(.*?)} | d=" }
],
"max-union-size": false,
"quotemark": [true, "single", "jsx-double"],
"no-unused-expression": false,
"no-duplicate-string": [true, 5],
"interface-name": false,
"array-type": false,
"forin": false,
"no-increment-decrement": false,
"function-name": [
true,
{
"method-regex": "^[a-z][\\w\\d]+$",
"private-method-regex": "^[a-z][\\w\\d]+$",
"protected-method-regex": "^[a-z][\\w\\d]+$",
"static-method-regex": "^[A-Za-z_\\d]+$",
"function-regex": "^[a-zA-Z][\\w\\d]+$"
}
],
"member-ordering": [
true,
{
"order": [
"public-instance-field",
"public-static-field",
"private-static-field",
"private-instance-field",
"public-constructor",
"private-constructor",
"public-instance-method",
"protected-instance-method",
"private-instance-method",
"public-static-method",
"protected-static-method",
"private-static-method"
]
}
],
"no-empty": false,
"cognitive-complexity": [true, 19],
"arrow-parens": [true, "ban-single-arg-parens"],
"ter-arrow-parens": [true, "as-needed"],
"object-literal-sort-keys": false,
"no-string-literal": false,
"no-nested-template-literals": false,
"trailing-comma": [
true,
{
"multiline": {
"objects": "always",
"arrays": "always",
"functions": "never",
"typeLiterals": "never"
},
"esSpecCompliant": true
}
]
},
"linterOptions": {
"exclude": ["node_modules/**", "tools/**", "server/**"]
}
}