-
Notifications
You must be signed in to change notification settings - Fork 92
/
.eslintrc.yaml
151 lines (150 loc) · 2.92 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
---
root: true
env:
browser: true
node: true
parser: "@babel/eslint-parser"
parserOptions:
ecmaVersion: 2020
ecmaFeatures:
impliedStrict: true
globals:
Geocoder: true
ol: true
extends:
- airbnb-base
- plugin:prettier/recommended
rules:
no-sync: 0
no-magic-numbers: 0
no-inline-comments: 0
line-comment-position: 0
max-statements: 0
no-process-env: 0
array-callback-return: 0
no-return-assign: 0
no-underscore-dangle: 0
no-nested-ternary: 0
no-negated-condition: 0
no-new: 0
max-lines: 0
no-plusplus: 0
no-cond-assign: 0
prefer-destructuring: 0
no-param-reassign: 0
no-process-exit: 0
class-methods-use-this: 0
no-this-before-super: 0
no-constructor-return: 0
no-console:
- warn
- allow:
- warn
- error
- trace
complexity:
- error
- max: 20
prettier/prettier:
- error
- singleQuote: true
printWidth: 100
tabWidth: 2
useTabs: false
semi: true
quoteProps: as-needed
trailingComma: es5
bracketSpacing: true
arrowParens: always
proseWrap: preserve
htmlWhitespaceSensitivity: css
endOfLine: lf
no-unused-vars:
- error
- args: none
ignoreRestSiblings: true
vars: local
caughtErrors: none
no-use-before-define:
- error
- functions: false
no-unused-expressions:
- error
- allowTernary: true
allowShortCircuit: true
id-length:
- error
- properties: never
exceptions:
- R
- h
- t
- i
- k
- q
- c
- r
- v
- x
- $
no-shadow:
- error
- builtinGlobals: true
allow:
- find
- name
- external
- status
- event
- open
consistent-return:
- error
- treatUndefinedAsUnspecified: true
max-params:
- error
- 4
func-style:
- error
- declaration
- allowArrowFunctions: true
import/group-exports: 0
import/exports-last: 0
import/max-dependencies: 0
import/no-unused-modules: 0
import/no-unassigned-import: 0
import/prefer-default-export: 0
import/no-namespace: 0
import/no-extraneous-dependencies:
- error
- devDependencies: true
import/extensions: 0
import/unambiguous: 0
import/no-anonymous-default-export:
- error
- allowArray: true
allowArrowFunction: true
allowObject: true
node/no-unpublished-import: 0
node/no-process-exit: 0
node/no-process-env: 0
node/no-sync: 0
promise/avoid-new: 0
promise/always-return: 0
unicorn/catch-error-name: 0
unicorn/prefer-query-selector: 0
unicorn/prefer-node-remove: 0
unicorn/no-null: 0
unicorn/prevent-abbreviations: 0
overrides:
- files:
- 'test/unit/*.test.js'
plugins:
- jest
extends:
- plugin:jest/recommended
- files:
- 'test/e2e/**/*.test.js'
plugins:
- testcafe
extends:
- plugin:testcafe/recommended