-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path..eslintrc.json
More file actions
60 lines (60 loc) · 1.52 KB
/
..eslintrc.json
File metadata and controls
60 lines (60 loc) · 1.52 KB
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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": false
},
"globals": {
"$JsMobileBasic": true,
"$Config": true,
"onClick": true,
"onRightClick": true,
"onMouseMove": true,
"onMouseDown": true,
"onMouseUp": true,
"onKeyDown": true,
"onKeyUp": true,
"onKeyPress": true,
"Main": true,
"Loop": true,
"JsMB": true
},
"rules": {
"prefer-const": "error",
"no-var":"error",
"strict": [2, "global"],
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "off",
"constructor-super": "warn",
"valid-typeof": "warn",
"no-console": "off",
"new-cap": "off",
"no-use-before-define": [2, {
"functions": false,
"classes": true
}],
"no-param-reassign": "error",
"wrap-iife": [2, "inside"],
"no-return-assign":"warn",
"no-underscore-dangle":"off",
"consistent-return":"off"
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "script",
"ecmaFeatures": {
"modules": false,
"defaultParams": true,
"classes": true,
"arrowFunctions": true,
"blockBindings": true,
"forOf": true,
"spread": true,
"templateStrings": true
}
}
}