-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
55 lines (54 loc) · 1.58 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
{
"env": {
"browser": true,
"commonjs": true,
"worker": true,
"jquery": true,
"es2021": true
},
"parserOptions": {
"ecmaVersion": 2021
},
"extends": ["eslint:recommended", "standard", "plugin:prettier/recommended"],
"globals": {
"_": "readonly",
"ascii85": "readonly",
"pako": "readonly",
"SharkGame": "readonly",
"Decimal": "readonly",
"DecimalHalfRound": "readonly",
"res": "readonly",
"main": "readonly",
"rec": "readonly",
"gateway": "readonly",
"stats": "readonly",
"world": "readonly",
"home": "readonly",
"tree": "readonly",
"log": "readonly",
"sharktext": "readonly",
"sharkmath": "readonly",
"sharkcolor": "readonly",
"sharkmisc": "readonly",
"sharktime": "readonly",
"cad": "readonly"
},
"ignorePatterns": ["js/lib/**"],
"rules": {
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "^__.+$",
"argsIgnorePattern": "^_.+$",
"args": "all"
}
],
"func-style": ["error", "declaration"],
"no-inner-declarations": "off",
"prefer-const": "error",
"no-var": "error",
"no-shadow": ["error", { "builtinGlobals": true, "hoist": "all", "allow": ["name", "event"] }],
"eqeqeq": ["error", "smart"],
"id-length": ["error", { "min": 3, "exceptionPatterns": ["i", "id", "to", "dt", "P", "A", "L", "R"] }]
}
}