forked from Cirrial/SharkGame
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
44 lines (43 loc) · 1.14 KB
/
.eslintrc
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
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": ["eslint:recommended", "prettier", "prettier/standard"],
"parserOptions": {
"ecmaVersion": 12
},
"globals": {
"_": "readonly",
"$": "readonly",
"ascii85": "readonly",
"pako": "readonly",
"SharkGame": "readonly",
"r": "readonly",
"m": "readonly",
"y": "readonly",
"g": "readonly",
"s": "readonly",
"w": "readonly",
"h": "readonly",
"cad": "readonly"
},
"ignorePatterns": ["js/lib/**", "js/fallback/**", "js/reference/**", "js/menu/**"],
"rules": {
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "(?:^__.{1,})|(?:[^$_]$)",
"argsIgnorePattern": "(?:^_.{1,})|(?:^.$)"
}
],
"func-names": ["error", "always"],
"func-style": ["error", "declaration"],
"no-inner-declarations": "off",
"prefer-const": "error",
"no-var": "error",
"no-shadow": "error",
"eqeqeq": ["error", "smart"]
}
}