-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtslint.json
72 lines (71 loc) · 2.03 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
{
"extends": "tslint-config-airbnb",
"rules": {
"align": false,
"no-increment-decrement": false,
"ter-arrow-parens": false,
"variable-name": false,
"object-shorthand-properties-first": false,
"class-name": true,
"interface-over-type-literal": true,
"interface-name": [true, "always-prefix"],
"import-name": {
"options": [
{ "lodashClone": "_clone" },
{ "lodashGet": "_get" },
{ "lodashIsempty": "_isEmpty" },
{ "lodashIsnumber": "_isNumber" },
{ "lodashIsstring": "_isString" },
{ "lodashSetwith": "_setWith" },
{ "lodashUnset": "_unset" }
]
},
"no-unused-variable": true,
"object-curly-spacing": [true, "always"],
"object-shorthand-properties-first": true,
"ordered-imports": [true, { "grouped-imports": true, "module-source-path": "full" }],
"max-line-length": [true, 130],
"prefer-const": true,
"quotemark": {
"options": ["single", "jsx-double"]
},
"space-before-function-paren": ["warning", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"space-in-parens": [true, "never"],
"strict-boolean-expressions": [true, "allow-null-union", "allow-undefined-union"],
"ter-indent": [true, 2],
"trailing-comma": {
"options": [{ "multiline": "always", "singleline": "never" }]
},
"typedef-whitespace": [
true,
{
"call-signature": "onespace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "nospace",
"property-declaration": "onespace",
"variable-declaration": "nospace"
}
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-rest-spread",
"check-preblock"
]
}
}