forked from wangxinleo/wechat-public-account-push
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
36 lines (36 loc) · 767 Bytes
/
.eslintrc.cjs
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
module.exports = {
env: {
node: true,
es2021: true,
},
extends: 'airbnb-base',
globals: {
expect: 'readonly',
test: 'readonly',
describe: 'readonly'
},
overrides: [
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'no-console': 0,
'import/no-extraneous-dependencies': 0,
'import/extensions': 0,
'max-len': 0,
'semi': [2, 'never'],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline"
}],
'no-param-reassign': 0,
'no-restricted-syntax': 0,
'no-plusplus': 0,
'no-await-in-loop': 0
},
};