-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.js
55 lines (54 loc) · 1.23 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
module.exports = {
globals: {
addEventListener: true,
Response: true,
NAME: true,
GA: true,
BG: true,
SIZE: true,
GAP: true,
MARGIN: true,
DURATION: true,
},
ignorePatterns: ['dist/*', 'worker/*'],
extends: [
'airbnb-base/legacy',
],
env: {
node: true,
es2020: true,
mocha: true,
browser: true,
},
parserOptions: {
sourceType: 'module',
ecmaFeatures: {
globalReturn: true,
impliedStrict: true,
},
},
rules: {
// airbnb scope overrides
'class-methods-use-this': 'off',
// prettier replacement rules
'max-len': [2, 120, 2, {
ignoreUrls: true,
ignoreComments: false,
comments: 300,
}],
indent: [2, 2],
semi: [2, 'always'],
quotes: [2, 'single', {allowTemplateLiterals: true}],
'comma-dangle': [2, 'always-multiline'],
'object-curly-spacing': [2, 'never'],
'arrow-parens': [2, 'as-needed'],
'linebreak-style': 0,
'array-bracket-spacing': [2, 'never'],
'function-call-argument-newline': [2, 'consistent'],
'function-paren-newline': [2, 'consistent'],
'object-property-newline': 2,
'no-param-reassign': 0,
'consistent-return': 0,
'no-restricted-globals': 0,
},
};