This repository has been archived by the owner on Dec 19, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
tslint.json
77 lines (77 loc) · 1.97 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:recommended",
"tslint-config-standard",
"tslint-etc",
"tslint-react",
"tslint-config-prettier"
],
"rules": {
// types related rules
"no-inferrable-types": true,
"no-namespace": {
"options": ["allow-declarations"]
},
"interface-name": {
"options": "never-prefix"
},
"no-unsafe-any": false,
// core lint rules
"ban": {
"options": [{
"name": "parseInt",
"message": "use #type-coercion -> Number(val)"
},
{
"name": "parseFloat",
"message": "use #type-coercion -> Number(val)"
},
{
"name": "Array",
"message": "use #array-constructor"
},
{
"name": ["describe", "only"],
"message": "don't focus spec blocks"
},
{
"name": ["it", "only"],
"message": "don't focus tests"
}
]
},
"no-magic-numbers": false,
"no-require-imports": true,
"no-boolean-literal-compare": true,
"no-invalid-this": {
"options": "check-function-in-method"
},
"no-invalid-template-strings": true,
"ordered-imports": true,
"prefer-template": true,
"newline-before-return": true,
"match-default-export-name": true,
"no-parameter-reassignment": false,
"file-name-casing": {
"options": ["kebab-case"]
},
"switch-default": false,
// tslint:recommended overrides
"no-any": true,
"member-access": {
"options": ["no-public"]
},
"object-literal-sort-keys": false,
"interface-over-type-literal": false,
// tslint:tslint-config-standard overrides
"no-unused-variable": false, // https://github.com/blakeembrey/tslint-config-standard/issues/51
// tslint-etc rules
"no-unused-declaration": false,
// tslint-react rules
"jsx-boolean-value": {
"options": "never"
}
},
// apply the same rules for any JS if allowJS is gonna be used
"jsRules": true
}