-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yaml
192 lines (192 loc) · 3.78 KB
/
.eslintrc.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
root: true
ignorePatterns:
- node_modules
- .vscode
- "*.json"
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: latest
project:
- ./tsconfig.json
plugins:
- "@typescript-eslint"
- sort-class-members
- import
env:
es6: true
extends:
- eslint:recommended
# - plugin:import/recommended
# - plugin:import/typescript
# - plugin:node/recommended
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
# - plugin:lodash/recommended
# - prettier
rules:
# eslint-plugin-import/prefer-default-export:
# - 1
prefer-const: 1
object-curly-newline:
- 1
- ImportDeclaration: never
ObjectExpression:
multiline: true
minProperties: 3
consistent: true
ObjectPattern:
consistent: true
ExportDeclaration:
multiline: true
minProperties: 3
consistent: true
prefer-rest-params:
- 0
sort-class-members/sort-class-members:
- 1
- order:
- "[static-properties]"
- "[static-methods]"
- "[properties]"
- "[conventional-private-properties]"
- "constructor"
- "[methods]"
- "[conventional-private-methods]"
accessorPairPositioning: "getThenSet"
indent:
- error
- 2
- SwitchCase: 1
linebreak-style:
- error
- unix
quotes:
- error
- double
lodash/prefer-lodash-method:
- 0
lodash/import-scope:
- 0
lodash/prop-shorthand:
- 0
lodash/prefer-constant:
- 0
"@typescript-eslint/no-inferrable-types":
- 0
- error
"@typescript-eslint/consistent-type-imports":
- 1
- prefer: type-imports
block-scoped-var: warn
curly:
- warn
- multi-line
eqeqeq:
- error
- always
max-classes-per-file:
- warn
- 1
no-eval:
- warn
- allowIndirect: false
no-extra-bind: warn
no-fallthrough:
- warn
- commentPattern: ''
no-implied-eval: warn
no-invalid-this: warn
# no-magic-numbers:
# - warn
# - detectObjects: false
# enforceConst: true
# ignoreArrayIndexes: true
no-new: warn
no-new-func: warn
no-new-wrappers: warn
no-redeclare:
- warn
- builtinGlobals: false
no-return-await: warn
no-self-compare: warn
prefer-promise-reject-errors:
- warn
- allowEmptyReject: false
array-bracket-spacing:
- warn
- always
- singleValue: false
objectsInArrays: false
arraysInArrays: false
brace-style:
- warn
- 1tbs
- allowSingleLine: true
# new-cap:
# - warn
# - newIsCap: true
# capIsNew: true
# newIsCapExceptionPattern: '@'
# capIsNewExceptionPattern: '@'
# properties: true
new-parens: warn
newline-per-chained-call:
- warn
- ignoreChainWithDepth: 2
no-array-constructor: warn
object-curly-spacing:
- warn
- always
object-property-newline:
- warn
- allowAllPropertiesOnSameLine: true
padded-blocks:
- warn
- never
prefer-object-spread: warn
quote-props:
- warn
- as-needed
require-jsdoc: warn
semi: off
"@typescript-eslint/semi":
- error
semi-spacing:
- warn
- before: false
after: true
sort-imports:
- warn
- ignoreCase: true
ignoreDeclarationSort: true
import/order:
- warn
- groups:
- external
- builtin
- internal
- sibling
- parent
- index
# pathGroups:
# - pattern: components
# group: internal
# - pattern: common
# group: internal
# - pattern: routes/ **
# group: internal
# - pattern: assets/**
# group: internal
# position: after
pathGroupsExcludedImportTypes:
- internal
alphabetize:
order: asc
caseInsensitive: true
no-restricted-imports:
- error
- paths:
- name: lodash
message: Use 'lodash-es' instead.
no-console:
- warn