-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.js
132 lines (131 loc) · 3.47 KB
/
.eslintrc.js
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
const config = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
},
extends: ['standard'],
plugins: ['@typescript-eslint', 'jest'],
rules: {
'prefer-regex-literals': 'warn',
'node/no-path-concat': [0],
'node/no-new-require': [0],
'node/no-exports-assign': [0],
'node/no-callback-literal': [0],
'node/handle-callback-err': [0],
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': 0,
'no-multiple-empty-lines': 0,
'operator-linebreak': [0],
'array-callback-return': 0,
camelcase: 1,
'no-useless-escape': 1,
'generator-star-spacing': [
'error',
{
before: false,
after: true,
},
],
'space-before-function-paren': [
'error',
{
anonymous: 'always',
named: 'never',
asyncArrow: 'always',
},
],
'comma-dangle': [0],
eqeqeq: 'off',
'no-invalid-this': 0,
'max-len': [
1,
{
code: 120,
ignoreUrls: true,
ignoreTemplateLiterals: true,
ignoreStrings: true,
ignoreRegExpLiterals: true,
},
],
'no-var': 'error',
'require-jsdoc': 'off',
'arrow-parens': 'off',
'no-console': 'off',
'new-cap': 'off',
indent: ['off'],
'brace-style': [2, '1tbs'],
'no-loop-func': 'error',
'no-await-in-loop': 0,
'no-useless-call': 'error',
'no-unused-vars': 1,
'no-trailing-spaces': 0,
'padded-blocks': [
'error',
{
blocks: 'never',
classes: 'never',
switches: 'never',
},
],
'space-in-parens': 'error',
'linebreak-style': 0,
'promise/param-names': 1,
'no-undef-init': 0,
'multiline-ternary': 0,
'no-control-regex': 0,
'no-unexpected-multiline': 0,
},
globals: {
expect: true,
NodeFilter: true,
Node: true,
CSSStyleRule: true,
CSSStyleSheet: true,
Document: true,
Element: true,
HTMLElement: true,
Event: true,
FileReader: true,
Headers: true,
MessageChannel: true,
jest: true,
DOMParser: true,
Blob: true,
location: true,
fetch: true,
caches: true,
self: true,
performance: true,
alert: true,
localStorage: true,
history: true,
DEFAULT_LOCALE: true,
__fetchLocaleData__: true,
STORE_NAME: true,
STORE_VIEW_CODE: true,
AVAILABLE_STORE_VIEWS: true,
DEFAULT_COUNTRY_CODE: true,
POSSIBLE_TYPES: true,
children: true,
clients: true,
preloaded: true,
createImageBitmap: true,
feature: true,
IntersectionObserver: true,
ResizeObserver: true,
__DEV__: true,
beforeAll: true,
afterAll: true,
describe: true,
it: true,
XMLDocument: true,
NodeList: true,
XPathResult: true,
getComputedStyle: true,
HTMLOptionElement: true,
PerformanceTiming: true,
NodeJS: true
},
}
module.exports = config