-
Notifications
You must be signed in to change notification settings - Fork 27
/
tslint.yml
60 lines (57 loc) · 1.56 KB
/
tslint.yml
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
extends:
- "tslint:latest"
- "tslint-config-prettier"
rulesDirectory:
- ./tools/tslint
rules:
#
# override rules from tslint:recommended
#
interface-name: [true, "never-prefix"]
member-access: [true, "no-public"] # true
member-ordering: [ # order: "statics-first"
true,
{
order: [
"public-static-field",
"private-static-field",
"public-instance-field",
"private-instance-field",
"public-static-method",
"private-static-method",
"constructor",
"public-instance-method",
"private-instance-method",
]
}
]
no-angle-bracket-type-assertion: false # true - use «<Type>» instead of «as Type» for casting
no-console: [false, "debug", "warn", "error"] # true
object-literal-sort-keys: false
quotemark: [true, "single", "avoid-escape"] # ["double", "avoid-escape"]
triple-equals: [true, "allow-null-check"] # true - allow for != null check to catch null & undefined
#
# override rules from tslint:latest
#
no-object-literal-type-assertion: false
no-submodule-imports: [true, "aws-sdk", "rxjs/operators"]
prefer-conditional-expression: false
#
# additional rules
#
no-inferrable-types: [true, "ignore-params"]
no-non-null-assertion: true
no-unnecessary-callback-wrapper: true
no-unnecessary-class: true
no-unnecessary-type-assertion: true
no-unused-variable: true
import-blacklist:
- true
- aws-sdk
# introduced with v5.12.0
unnecessary-constructor: true
unnecessary-bind: true
#
# custom rules
#
no-dynamo-named-import: true