-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
65 lines (65 loc) · 1.93 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
{
"defaultSeverity": "error",
"extends": ["tslint:recommended", "tslint-config-prettier", "tslint-plugin-prettier"],
"jsRules": {},
"rules": {
"align": false,
"array-type": false,
"arrow-parens": false,
"ban-types": [true, ["Object", "Use {} instead."]],
"class-name": false,
"comment-format": false,
"eofline": false,
"experimentalDecorators": true,
"indent": [true, "spaces", 2],
"interface-name": false,
"interface-over-type-literal": false,
"max-classes-per-file": false,
"max-line-length": false,
"member-access": false,
"member-ordering": false,
"no-angle-bracket-type-assertion": false, // true for .tsx
"no-bitwise": false,
"no-consecutive-blank-lines": [true, 3],
"no-console": false,
"no-debugger": true,
"no-empty": true,
"no-eval": true,
"no-namespace": true,
"no-shadowed-variable": false,
"no-switch-case-fall-through": true,
"no-unnecessary-initializer": true,
"no-unused-expression": [true, "allow-fast-null-checks"],
"no-var-requires": false,
"object-literal-key-quotes": false,
"object-literal-shorthand": false, // Enforces use of ES6 object literal shorthand when possible
"object-literal-sort-keys": false,
"one-line": false,
"only-arrow-functions": false,
"ordered-imports": false,
"prefer-const": false,
"prefer-for-of": false,
"quotemark": [true, "single", "jsx-double", "avoid-escape"],
"semicolon": [true, "always", "ignore-interfaces"],
"space-before-function-paren": [true, {"named": "never"}],
"trailing-comma": [
true,
{
"singleline": "never",
"multiline": {
"objects": "always",
"arrays": "always",
"functions": "never",
"typeLiterals": "ignore"
}
}
],
"triple-equals": true,
"variable-name": [
true,
"ban-keywords"
]
},
"rulesDirectory": [],
"prettier": true
}