-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.yml
136 lines (131 loc) · 2.85 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
extends:
- tslint:latest
- rxjs-tslint-rules
rulesDirectory:
- node_modules/codelyzer
- node_modules/rxjs-tslint
rules:
# tslint rules
deprecation:
severity: warning
arrow-parens:
- true
- ban-single-arg-parens
array-type:
- true
- array
quotemark:
- true
- single
interface-name:
- never-prefix
max-line-length:
- true
- 240
member-access:
- true
- no-public
member-ordering:
- true
- order:
- public-static-field
- public-static-method
- private-instance-field
- public-instance-field
- public-constructor
- public-instance-method
- private-instance-method
no-console:
- true
- debug
- info
- log
no-empty: false
no-implicit-dependencies: false
no-reference: false
no-string-literal: false
no-submodule-imports: false
object-literal-key-quotes:
- consistent-as-needed
object-literal-sort-keys: false
one-line: false
ordered-imports: false
prefer-object-spread: false
trailing-comma: false
typedef-whitespace:
- true
- call-signature: nospace
index-signature: nospace
parameter: nospace
property-declaration: nospace
variable-declaration: nospace
variable-name:
- true
- check-format
- allow-leading-underscore
# rxjs-tslint
# s. https://github.com/ReactiveX/rxjs-tslint#use-rules
rxjs-collapse-imports:
severity: error
rxjs-pipeable-operators-only:
severity: error
rxjs-no-static-observable-methods:
severity: error
rxjs-proper-imports:
severity: error
# rxjs-tslint-rules
# s. https://blog.angularindepth.com/rxjs-tslint-rules-for-version-6-d10e2482292d
rxjs-ban-observables:
options:
- empty: Use EMPTY
never: Use NEVER
severity: error
rxjs-ban-operators:
options:
- combineLatest: Use the static combineLatest
concat: Use the static concat
merge: Use the static merge
race: Use the static race
zip: Use the static zip
severity: error
rxjs-no-finnish:
severity: error
# TODO: why is that rule unknown (s. https://goo.gl/2rtD95)?
# rxjs-no-internals:
# severity: error
rxjs-no-subject-unsubscribe:
severity: error
rxjs-throw-error:
severity: error
# codelyzer rules
angular-whitespace:
- true
- check-interpolation
- check-semicolon
banana-in-box: true
templates-no-negated-async: true
directive-selector:
- true
- attribute
- grid
- camelCase
component-selector:
- true
- element
- grid
use-input-property-decorator: true
use-output-property-decorator: true
use-host-property-decorator: true
no-attribute-parameter-decorator: true
no-input-rename: true
no-output-rename: true
no-forward-ref: false
use-life-cycle-interface: true
use-pipe-transform-interface: true
pipe-naming:
- true
- camelCase
- ''
component-class-suffix: true
directive-class-suffix: true
no-access-missing-member: false