-
Notifications
You must be signed in to change notification settings - Fork 19
/
tslint.json
45 lines (45 loc) · 1.34 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
{
"extends": ["tslint-eslint-rules", "tslint-config-prettier"],
"rules": {
"quotes": ["error", "single"],
"semi": ["error", "always"],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "never",
"exports": "never",
"functions": "ignore"
}],
"varspacing/var-spacing": ["error"],
"key-spacing": ["error", {"align": "colon"}],
"padded-blocks": ["error", "never"],
"padding-line-between-statements": [
"error",
{"blankLine": "always", "prev": ["const", "let", "var"], "next": "*"},
{"blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]},
{"blankLine": "always", "prev": "*", "next": "return"}
],
"indent": [true, "2"],
"function-paren-newline": ["error", "multiline"],
"space-before-function-paren": [true, {
"anonymous": "always",
"named": "always",
"asyncArrow": "always"
}],
"generator-star-spacing": ["error", "after"],
"object-curly-spacing": [true, "always"],
"array-bracket-spacing": [
true,
"always"
],
"quotemark": [true, "single", "jsx-double", "avoid-escape"],
"semicolon": [true, "always"],
"trailing-comma": [
true,
{
"multiline": "always",
"singleline": "never"
}
]
}
}