-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.yaml
148 lines (148 loc) · 2.69 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
env:
browser: true
es2021: true
extends:
- eslint:recommended
- plugin:import/recommended
parserOptions:
ecmaVersion: latest
sourceType: module
rules:
logical-assignment-operators: error
no-new-func: error
no-new-object: error
no-new-wrappers: error
no-var: error
prefer-const: error
no-extra-parens: error
no-misleading-character-class: error
no-template-curly-in-string: error
require-atomic-updates: error
curly: error
indent:
- 2
- tab
- SwitchCase: 1
linebreak-style:
- 0
- unix
semi:
- error
- always
no-console:
- 0
no-unused-vars:
- 1
- varsIgnorePattern: ^_
no-redeclare:
- 1
no-unreachable:
- 1
no-inner-declarations:
- 0
comma-dangle:
- 1
- always-multiline
eqeqeq: error
dot-notation: error
no-else-return: error
no-extra-bind: error
no-labels: error
no-floating-decimal: error
no-lone-blocks: error
no-loop-func: error
no-magic-numbers: off
no-multi-spaces: error
no-param-reassign: error
strict:
- error
- global
quotes:
- 1
- single
- avoidEscape: true
quote-props:
- 1
- as-needed
- keywords: true
unnecessary: true
numbers: false
no-empty:
- error
- allowEmptyCatch: true
arrow-spacing:
- error
- before: true
after: true
prefer-arrow-callback: error
prefer-spread: error
prefer-template: error
prefer-rest-params: error
prefer-exponentiation-operator: error
require-await: error
arrow-parens: error
no-use-before-define: error
no-multiple-empty-lines:
- warn
- max: 1
maxEOF: 1
prefer-destructuring:
- warn
- VariableDeclarator:
object: true
array: false
AssignmentExpression:
object: true
array: false
space-infix-ops: warn
object-curly-spacing:
- warn
- always
array-bracket-spacing:
- warn
- never
- singleValue: false
objectsInArrays: false
arraysInArrays: true
comma-spacing:
- warn
- before: false
after: true
key-spacing:
- warn
- beforeColon: false
afterColon: true
space-in-parens:
- warn
- never
import/order:
- warn
- groups:
- builtin
- external
- internal
- parent
- sibling
- index
alphabetize:
order: asc
caseInsensitive: false
implicit-arrow-linebreak:
- warn
- beside
function-call-argument-newline:
- warn
- consistent
no-extra-semi:
- error
import/first:
- warn
padding-line-between-statements:
- warn
- blankLine: always
prev: import
next: "*"
- blankLine: never
prev: import
next: import
root: true