-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
66 lines (66 loc) · 2.07 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
// https://palantir.github.io/tslint/rules/
{
// https://github.com/ajafff/tslint-consistent-codestyle
"extends": ["tslint-consistent-codestyle"],
"rules": {
"adjacent-overload-signatures": true,
"arrow-return-shorthand": true,
"class-name": true,
"curly": true,
"eofline": false,
"indent": [true, "spaces"],
"jsdoc-format": true,
"label-position": true,
"new-parens": true,
"no-angle-bracket-type-assertion": true,
"no-arg": true,
"no-consecutive-blank-lines": [true, 2],
"no-console": [true, "debug"],
"no-construct": true,
"no-debugger": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-require-imports": true,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unused-expression": true,
//"no-unused-variable": [true, {"ignore-pattern": "React"}],
// https://github.com/ajafff/tslint-consistent-codestyle/blob/master/docs/no-unused.md
"no-unused": [true, { "ignore-imports": true }],
"no-var-before-return": true,
"no-var-keyword": true,
"no-var-requires": true,
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"one-variable-per-declaration": [true, "ignore-for-loop"],
"prefer-const": true,
"quotemark": [true, "double"],
"semicolon": [true, "always"],
"trailing-comma": [true, { "multiline": "never", "singleline": "never" }],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"variable-name": [true, "allow-leading-underscore", "allow-pascal-case"],
"whitespace": [true, "check-branch", "check-decl", "check-separator"]
}
}