-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
60 lines (60 loc) · 1.52 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
{
"extends": ["tslint:recommended", "tslint-eslint-rules", "tslint-config-prettier"],
"rules": {
// tslint-eslint
"array-bracket-spacing": [true, "never"],
"brace-style": [true, "stroustrup"],
"object-curly-spacing": [true, "always"],
// General
"linebreak-style": [true, "LF"],
"member-access": [true, "check-accessor"],
"member-ordering": [
true,
{
"order": "instance-sandwich"
}
],
"no-focused-tests": true,
"no-non-null-assertion": true,
"no-switch-case-fall-through": true,
"one-line": [true, "check-open-brace"],
"align": false,
"interface-name": false,
"no-bitwise": true,
"no-conditional-assignment": true,
"no-console": [true, "time", "timeEnd", "trace"],
"no-empty-interface": false,
"max-line-length": [true, 140],
"no-string-literal": false,
"object-literal-sort-keys": false,
"only-arrow-functions": [true, "allow-named-functions"],
"ordered-imports": [
true,
{
"grouped-imports": true,
"groups": [
{
"name": "absolute paths",
"match": "^[a-zA-Z]",
"order": 1
},
{
"name": "relative paths",
"match": "^[.][.]?",
"order": 2
},
{
"name": "all",
"match": ".*",
"order": 2
}
]
}
],
"prefer-for-of": true,
"prefer-object-spread": true,
"quotemark": [true, "single", "avoid-escape"],
"trailing-comma": [false, { "multiline": "always", "singleline": "never" }],
"variable-name": [true, "allow-leading-underscore", "allow-pascal-case", "ban-keywords", "check-format"]
}
}