-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.json
47 lines (47 loc) · 1.22 KB
/
.eslintrc.json
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
{
"root": true,
"env": {
"browser": true,
"commonjs": true,
"node": true,
"es2021": true
},
"extends": [
"prettier-standard",
"plugin:compat/recommended"
],
"rules": {
"block-scoped-var": "error",
"consistent-return": "error",
"no-implicit-globals": "error",
"no-promise-executor-return": "error",
"no-script-url": "error",
"no-shadow": ["error", {"builtinGlobals": true}],
"no-unsafe-optional-chaining": "error",
"no-var": "error",
"prefer-arrow-callback": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"prettier/prettier": ["error", {"singleQuote": true, "printWidth": 120}]
},
"settings": {
"polyfills": [
"Promise"
]
},
"overrides": [
{
"files": ["plugins/yivi-web/**/*.js", "plugins/yivi-popup/**/*.js", "yivi-frontend/**/*.js"],
"env": {
"node": false
}
},
{
"files": ["plugins/yivi-console/node.js"],
"env": {
"browser": false
}
}
]
}