-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
92 lines (92 loc) · 2.4 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"extends": ["tslint:latest", "tslint-react", "tslint-config-prettier"],
"linterOptions": {
"exclude": ["node_modules/**/*"]
},
"rules": {
"align": [false],
"array-type": [true, "generic"],
"arrow-parens": false,
"eofline": false,
"max-line-length": [false],
"member-ordering": [false],
"no-bitwise": false,
"no-duplicate-imports": false,
"no-null-keyword": false,
"no-submodule-imports": false,
"no-console": false,
"member-access": false,
"jsx-boolean-value": false,
"object-literal-sort-keys": false,
"interface-name": false,
"max-classes-per-file": false,
"no-this-assignment": false,
"no-implicit-dependencies": false,
"no-var-requires": false,
"forin": false,
"no-switch-case-fall-through": true,
"object-literal-shorthand": false,
"no-shadowed-variable": false,
"one-line": [false],
"ordered-imports": [false],
"prefer-conditional-expression": false,
"quotemark": [true, "single", "jsx-double"],
"semicolon": [true, "never"],
"trailing-comma": [
true,
{
"multiline": "never",
"singleline": "never"
}
],
"variable-name": [true, "ban-keywords"],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-type"
],
// ESLint rules for TSLint (tslint-eslint-rules).
"array-bracket-spacing": [true, "never"],
"block-spacing": [true, "always"],
"brace-style": [
true,
"stroustrup",
{
"allowSingleLine": true
}
],
"no-consecutive-blank-lines": [true],
"no-constant-condition": true,
"no-control-regex": true,
"no-duplicate-case": true,
"no-empty-character-class": true,
"no-ex-assign": true,
"no-extra-boolean-cast": true,
"no-extra-semi": true,
"no-inner-declarations": true,
"no-invalid-regexp": true,
"no-irregular-whitespace": true,
"no-multi-spaces": true,
"no-regex-spaces": true,
"object-curly-spacing": [true, "always"],
"object-literal-key-quotes": [false],
"ter-indent": [
true,
2,
{
"SwitchCase": 1
}
],
"ter-prefer-arrow-callback": [true],
"use-isnan": true,
"valid-typeof": true,
// tslint-react rules.
"jsx-no-lambda": false,
"jsx-no-multiline-js": false,
"jsx-wrap-multiline": false
}
}