-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
60 lines (60 loc) · 1.36 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
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"root": true,
"extends": "eslint:recommended",
"env": {
"browser": true,
"es2021": true
},
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true
}
},
"ignorePatterns": [
"src/sub-electricity/index/u-charts.js",
"src/sub-electricity/show/echarts.min.js"
],
"rules": {
"eqeqeq": "warn",
"no-irregular-whitespace": "off",
"no-lonely-if": "warn",
"no-unused-vars": "warn",
"no-unneeded-ternary": "warn",
"no-use-before-define": "warn",
"no-useless-rename": "warn",
"object-shorthand": "warn",
"space-infix-ops": "warn",
"keyword-spacing": "warn",
"semi-spacing": "warn",
"arrow-spacing": "warn",
"space-before-blocks": "warn",
"spaced-comment": "warn"
},
"globals": {
"App": "writable",
"Behavior": "writable",
"Component": "writable",
"NativeGlobal": "writable",
"Page": "writable",
"WXWebAssembly": "writable",
"WeAppWorker": "writable",
"chrome": "writable",
"debugInfo": "writable",
"decodePathName": "writable",
"define": "writable",
"definePlugin": "writable",
"document": "readonly",
"getApp": "writable",
"getCurrentPages": "writable",
"innerHeight": "writable",
"innerWidth": "writable",
"module": "writable",
"require": "writable",
"requireOnce": "writable",
"requirePlugin": "writable",
"wx": "writable",
"webkitURL": "writable"
}
}