-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
36 lines (36 loc) · 1.18 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
{
"extends": [
"tslint:recommended",
"tslint-plugin-prettier"
],
"rules": {
"prettier": [true, "/etc/prettier-config.json"],
"linebreak-style": [true, "LF"],
"member-access": false,
// no sense in checking indentation since Prettier takes takes care of formatting,
// and in fact in some cases trips up "indentation should be tabs" by using spaces
"indent": false,
"interface-name": false,
"max-classes-per-file": false,
"object-literal-sort-keys": false,
"no-void-expression": true,
"max-line-length": false,
"no-consecutive-blank-lines": false,
"no-duplicate-imports": true,
"no-switch-case-fall-through": true,
// ignore-bound-class-methods because otherwise prettier.io and tslint would do conflicting fixes
"semicolon": [true, "always", "ignore-bound-class-methods"],
"trailing-comma": [true, {"multiline": "always", "singleline": "never"}],
"switch-default": true,
"no-floating-promises": true,
"only-arrow-functions": {
"options": [
"allow-declarations",
"allow-named-functions"
]
},
// these two are disabled only because they conflict with what prettier.io generates
"quotemark": false,
"object-literal-key-quotes": false
}
}