This repository has been archived by the owner on Apr 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.yaml
196 lines (175 loc) · 3.52 KB
/
tslint.yaml
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
---
extends:
- tslint:recommended
- tslint-config-prettier
rules:
# Class and Member design
no-unnecessary-class:
- true
- allow-constructor-only
- allow-static-only
- allow-empty-class
member-access:
- true
- no-public
member-ordering:
- true
- order: instance-sandwich
adjacent-overload-signatures: true
unified-signatures: true
prefer-function-over-method:
- true
- allow-public
- allow-protected
no-invalid-this:
- true
- check-function-in-method
no-duplicate-super: true
no-misused-new: true
no-construct: true
# Interface design
no-empty-interface: true
prefer-method-signature: true
interface-over-type-literal: false
interface-name:
- true
- never-prefix
# Function design
no-arg: true
only-arrow-functions:
- true
- allow-declarations
- allow-named-functions
arrow-return-shorthand: true
no-return-await: true
no-async-without-await: true
# Variable design
prefer-const: true
no-shadowed-variable:
- true
- temporalDeadZone
one-variable-per-declaration:
- true
- ignore-for-loop
no-duplicate-variable:
- true
- check-parameters
no-unnecessary-initializer: true
# Requires and Imports
no-implicit-dependencies:
- true
- dev
ordered-imports:
- true
- import-sources-order: lowercase-last
named-imports-order: case-insensitive
grouped-imports: true
no-duplicate-imports: true
no-require-imports: true
no-default-export: true
no-reference: true
no-submodule-imports:
- true
- rxjs
- firebase
- rxfire
- aws-sdk
- zone.js
# Types
typedef:
- true
- call-signature
- property-declaration
no-inferrable-types:
- true
- ignore-params
no-angle-bracket-type-assertion: true
callable-types: true
array-type:
- true
- generic
# Objects
prefer-object-spread: true
object-literal-shorthand: true
no-string-literal: false
no-object-literal-type-assertion: false
# Strings
prefer-template: true
no-invalid-template-strings: true
# Operators
triple-equals:
- true
- allow-null-check
binary-expression-operand-order: true
no-dynamic-delete: true
no-bitwise: true
use-isnan: true
no-conditional-assignment: true
# Conditional statements
prefer-conditional-expression:
- true
- check-else-if
# For statement
prefer-for-of: true
forin: true
# Switch statement
switch-default: true
no-switch-case-fall-through: true
no-duplicate-switch-case: true
# Try statement
no-unsafe-finally: true
# Maintainability
encoding: true
cyclomatic-complexity:
- true
- 20
max-file-line-count:
- true
- 1500
# Layout
curly:
- false
# Empty lines
newline-before-return: true
# Naming
class-name: true
variable-name:
- true
- require-const-for-all-caps
- check-format
- allow-leading-underscore
- allow-snake-case
- ban-keywords
# Documentation
comment-format:
- true
- check-space
jsdoc-format:
- true
- check-multiline-start
no-redundant-jsdoc: true
# Misc
no-console:
- false
- debug
- info
- time
- timeEnd
- trace
no-debugger: true
no-string-throw: true
no-namespace: true
no-internal-module: true
radix: true
no-empty: true
no-sparse-arrays: true
label-position: true
no-var-keyword: true
object-literal-sort-keys: false
# Original
deprecation:
severity: warn
import-blacklist:
- true
- rxjs/Rx
- rxjs/internal/operators