-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
84 lines (84 loc) · 1.89 KB
/
.eslintrc.json
File metadata and controls
84 lines (84 loc) · 1.89 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true,
"node": true
},
"extends": ["eslint:recommended"],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
"indent": ["warn", 2],
"quotes": ["warn", "single"],
"semi": ["warn", "always"],
"no-var": "warn",
"prefer-const": "warn",
"linebreak-style": ["warn", "unix"],
"eol-last": ["warn", "always"],
"no-trailing-spaces": "warn",
"keyword-spacing": "warn",
"space-infix-ops": "warn",
"no-inner-declarations": "warn",
"max-len": ["warn", { "code": 100 }]
},
"overrides": [
{
"files": ["public/js/**/*.js", "public/components/**/*.js"],
"env": {
"browser": true,
"node": false
},
"globals": {
"document": "readonly",
"window": "readonly",
"localStorage": "readonly",
"sessionStorage": "readonly",
"HTMLElement": "readonly",
"customElements": "readonly",
"prompt": "readonly",
"Audio": "readonly",
"MutationObserver": "readonly",
"IntersectionObserver": "readonly",
"requestAnimationFrame": "readonly",
"requestIdleCallback": "readonly"
},
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
"no-unused-vars": "warn"
}
},
{
"files": ["server/**/*.js", "scripts/**/*.js", "*.js"],
"env": {
"browser": false,
"node": true
},
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"no-unused-vars": "warn"
}
},
{
"files": ["tests/**/*.js"],
"env": {
"jest": true,
"node": true,
"browser": true
},
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"no-unused-vars": "warn"
}
}
]
}