forked from yugasun/qrcode-decoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
45 lines (38 loc) · 929 Bytes
/
.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
module.exports = {
root: true,
parserOptions: {
sourceType: 'module',
},
env: {
browser: true,
es6: true,
node: true,
},
extends: ['airbnb-base'],
rules: {
'no-shadow': [
'error',
{
allow: ['state'],
},
],
// 'import/extensions': 'off',
'import/extensions': [
'error',
'always',
{
js: 'never',
},
],
'import/no-unresolved': 'off',
'no-param-reassign': 'off',
'consistent-return': 'off',
'global-require': 'off',
'import/no-dynamic-require': 'off',
'import/no-extraneous-dependencies': 'off',
// 4 行空格缩进
indent: ['error', 4, { SwitchCase: 1 }],
'max-len': ['error', { code: 150 }],
'operator-linebreak': 0,
},
};