-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
49 lines (48 loc) · 1.13 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
module.exports = {
globals: {
__PATH_PREFIX__: true,
USER: true,
API_KEY: true,
},
ignorePatterns: ['dist/*', 'worker/*'],
extends: [
'airbnb',
],
env: {
node: true,
es2020: true,
mocha: true,
browser: true,
},
parserOptions: {
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,
'import/prefer-default-export': [1],
'no-restricted-globals': 0
},
};