-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
65 lines (65 loc) · 1.55 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
module.exports = {
env: {
browser: false,
es6: true,
node: true,
mocha: true
},
extends: 'airbnb-base',
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
rules: {
'arrow-body-style': 'off',
'arrow-parens': ['error', 'always'],
'class-methods-use-this': 'off',
'comma-dangle': ['error', 'never'],
'consistent-return': 'off',
eqeqeq: 'off',
'func-names': ['error', 'as-needed'],
'global-require': 'off',
'implicit-arrow-linebreak': 'off',
'new-cap': 'off',
'no-console': 'off',
'no-shadow': 'off',
'no-restricted-syntax': 'off',
'no-multiple-empty-lines': ['error', {
max: 1,
maxBOF: 0,
maxEOF: 1
}],
'no-param-reassign': ['error', {
props: false
}],
'no-prototype-builtins': 'off',
'no-underscore-dangle': 'off',
'no-unused-expressions': ['error', {
allowShortCircuit: true,
allowTernary: true
}],
'no-unused-vars': ['error', {
vars: 'all',
args: 'after-used',
ignoreRestSiblings: true
}],
'operator-linebreak': ['error', 'before', {
overrides: {
'=': 'after'
}
}],
'padded-blocks': ['error', 'never'],
semi: ['error', 'never'],
'import/order': ['error', {
groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
'newlines-between': 'always'
}],
'import/prefer-default-export': 'off',
'no-return-await': 0,
'import/no-mutable-exports': 0
}
}