-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtslint.config.js
75 lines (75 loc) · 1.49 KB
/
tslint.config.js
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
module.exports = {
compilerOptions: {
allowJs: true,
checkJs: true
},
linterOptions: {
format: "stylish",
exclude: [
"node_modules/**/*",
"build/**/*",
"dist/**/*",
"coverage/**/*",
"cypress/**/*"
]
},
extends: [
"tslint-config-standard",
"tslint-react"
],
jsRules: true,
rules: {
"space-before-function-paren": [true, "always"],
"arrow-parens": [true, "ban-single-arg-parens"],
"no-unexpected-multiline": true,
"ter-no-irregular-whitespace": [true],
"ter-indent": [
true,
2,
{
"SwitchCase": 1,
"MemberExpression": 1,
"FunctionDeclaration": {
"parameters": 1,
"body": 1
},
"FunctionExpression": {
"parameters": 1,
"body": 1
},
"CallExpression": {
"arguments": 1
}
}
],
semicolon: [true, "always"],
quotemark: [
true,
"double",
"jsx-double",
"avoid-template",
"avoid-escape"
],
"indent": [
true,
"spaces",
2
],
whitespace: [
true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-rest-spread",
"check-type",
"check-typecast",
// "check-type-operator",
"check-preblock"
],
"no-empty": { severity: "warning" },
// jsx rules
"jsx-no-lambda": { severity: "warning" },
"jsx-no-multiline-js": { severity: "warning" }
}
};