-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
73 lines (72 loc) · 2.52 KB
/
Copy patheslint.config.js
File metadata and controls
73 lines (72 loc) · 2.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
61
62
63
64
65
66
67
68
69
70
71
72
73
import eslintConfigPrettier from 'eslint-config-prettier';
import js from '@eslint/js';
export default [
js.configs.recommended,
eslintConfigPrettier,
{
files: ['static/**/*.js'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'script',
globals: {
window: 'readonly',
document: 'readonly',
console: 'readonly',
setTimeout: 'readonly',
setInterval: 'readonly',
clearTimeout: 'readonly',
clearInterval: 'readonly',
requestAnimationFrame: 'readonly',
cancelAnimationFrame: 'readonly',
fetch: 'readonly',
WebSocket: 'readonly',
HTMLElement: 'readonly',
Event: 'readonly',
KeyboardEvent: 'readonly',
MutationObserver: 'readonly',
IntersectionObserver: 'readonly',
ResizeObserver: 'readonly',
AbortController: 'readonly',
URLSearchParams: 'readonly',
FormData: 'readonly',
Headers: 'readonly',
Response: 'readonly',
Request: 'readonly',
navigator: 'readonly',
location: 'readonly',
history: 'readonly',
localStorage: 'readonly',
sessionStorage: 'readonly',
CustomEvent: 'readonly',
alert: 'readonly',
confirm: 'readonly',
prompt: 'readonly',
performance: 'readonly',
queueMicrotask: 'readonly',
structuredClone: 'readonly',
Blob: 'readonly',
URL: 'readonly',
Map: 'readonly',
Set: 'readonly',
Promise: 'readonly',
JSON: 'readonly',
Math: 'readonly',
parseInt: 'readonly',
parseFloat: 'readonly',
isNaN: 'readonly',
isFinite: 'readonly',
encodeURIComponent: 'readonly',
decodeURIComponent: 'readonly',
btoa: 'readonly',
atob: 'readonly',
},
},
rules: {
'no-unused-vars': ['warn', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^sequencer$',
caughtErrorsIgnorePattern: '^_',
}],
},
},
];