-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtslint.json
37 lines (37 loc) · 1.08 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
{
"extends": ["tslint:recommended", "tslint-react"],
"rules": {
"arrow-parens": [true, "ban-single-arg-parens"],
"arrow-return-shorthand": true,
"curly": true,
"eofline": true,
"max-line-length": [false],
"no-console": [true, "log"],
"no-magic-numbers": [true, -1, 0, 1, 2, 3],
"no-reference": true,
"no-duplicate-variable": true,
"no-trailing-whitespace": true,
"no-constant-condition": true,
"no-control-regex": true,
"no-duplicate-case": true,
"no-extra-semi": true,
"no-invalid-regexp": true,
"object-literal-sort-keys": false,
"only-arrow-functions": [true],
"ordered-imports": [true],
"quotemark": [true, "single", "jsx-double"],
"switch-default": true,
"ter-indent": [true, 2, {"SwitchCase": 1}],
"triple-equals": [true, "allow-null-check"],
"whitespace": [true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-type",
"check-typecast"
]
},
"rulesDirectory": ["node_modules/tslint-eslint-rules/dist/rules"]
}