-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtslint.json
47 lines (47 loc) · 1.37 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
{
"defaultSeverity": "error",
"extends": [
"tslint:latest", "tslint-react"
],
"jsRules": {},
"rules": {
"max-line-length": {
"options": [120]
},
"curly": [true, "ignore-same-line"],
"jsx-wrap-multiline": true,
"jsx-self-close": true,
"ordered-imports": false,
"no-console": false,
"no-conditional-assignment": true,
"no-duplicate-super": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-misused-new": true,
"no-sparse-arrays": true,
"no-switch-case-fall-through": true,
"triple-equals": true,
"typeof-compare": true,
"cyclomatic-complexity": true,
"prefer-const": [false, {
"destructuring": "all"
}],
"trailing-comma": false,
"align": [true, "parameters", "statements"],
"arrow-return-shorthand": [true],
"class-name": true,
"comment-format": [true, "check-lowercase", {
"ignore-words": ["TODO", "HACK"]
}],
"import-spacing": true,
"interface-name": [false, "always-prefix"],
"interface-over-type-literal": true,
"newline-before-return": true,
"no-consecutive-blank-lines": [true, 2],
"one-variable-per-declaration": false,
"quotemark": [false, "single", "avoid-escape"],
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-pascal-case"]
},
"rulesDirectory": []
}