-
Notifications
You must be signed in to change notification settings - Fork 2
/
tslint.json
40 lines (40 loc) · 1.08 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
{
"linterOptions": {
"exclude": ["src/generated/*.tsx"]
},
"extends": ["tslint-config-airbnb", "tslint-react-hooks"],
"rules": {
"no-conditional-assignment": true,
"no-unbound-method": true,
"no-sparse-arrays": true,
"restrict-plus-operands": true,
"no-invalid-template-strings": true,
"no-boolean-literal-compare": true,
"no-console": true,
"object-shorthand-properties-first": false,
"ter-arrow-parens": [true, "as-needed"],
"trailing-comma": false,
"indent": [true, "spaces", 4],
"import-name": false,
"align": false,
"function-name": [
true,
{
"function-regex": "^[a-zA-Z$][\\w\\d]+$",
"method-regex": "^[a-z$][\\w\\d]+$",
"private-method-regex": "^[a-z$][\\w\\d]+$",
"protected-method-regex": "^[a-z$][\\w\\d]+$",
"static-method-regex": "^[a-z$][\\w\\d]+$"
}
],
"variable-name": {
"options": [
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-pascal-case"
]
},
"react-hooks-nesting": true
}
}