-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
73 lines (73 loc) · 1.83 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
{
"defaultSeverity": "error",
"extends": [
// https://github.com/palantir/tslint/blob/master/src/configs/recommended.ts
"tslint:recommended",
"tslint-eslint-rules",
"tslint-config-airbnb",
"tslint-react",
"tslint-react-hooks"
],
"jsRules": {},
"rules": {
// ============= from tslint =============
"object-literal-sort-keys": false,
"interface-name": [true, "never-prefix"],
"member-ordering": false,
"quotemark": [true, "single", "jsx-double"],
"semicolon": [true, "always", "strict-bound-class-methods"],
"jsx-boolean-value": false,
"trailing-comma": [
true,
{
"multiline": {
"objects": "always",
"arrays": "always",
"imports": "always",
"exports": "always",
"functions": "ignore"
},
"singleline": "never",
"esSpecCompliant": true
}
],
// disable the rules that sort imports by alphabetical order
"ordered-imports": [
true,
{
"grouped-imports": true,
"import-sources-order": "any",
"named-imports-order": "any"
}
],
"no-console": [true, "log"],
// This rule is here for now because of https://github.com/palantir/tslint-react/issues/120
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-pascal-case"
],
"import-name": [
true,
{
"react": "React"
}
],
// ============= from tslint-eslint-rules =============
"object-curly-spacing": [true, "always"],
"max-line-length": [false],
"ter-max-len": [
true,
{
"code": 100,
"tabWidth": 2,
"ignoreUrls": true,
"ignoreComments": true
}
],
// ============= from tslint-react =============
"jsx-no-multiline-js": false
},
"rulesDirectory": []
}