-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.js
More file actions
48 lines (48 loc) · 1.24 KB
/
Copy patheslint.config.js
File metadata and controls
48 lines (48 loc) · 1.24 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
// ESLint flat config format (v9+) - ES Module
export default [
{
languageOptions: {
ecmaVersion: 2020,
sourceType: 'module',
globals: {
window: 'readonly',
document: 'readonly',
console: 'readonly',
setTimeout: 'readonly',
clearTimeout: 'readonly',
setInterval: 'readonly',
clearInterval: 'readonly',
requestAnimationFrame: 'readonly',
cancelAnimationFrame: 'readonly',
performance: 'readonly',
fetch: 'readonly',
alert: 'readonly',
DOMParser: 'readonly',
WebSocket: 'readonly',
Worker: 'readonly',
Image: 'readonly',
URL: 'readonly',
Blob: 'readonly',
FileReader: 'readonly',
Math: 'readonly',
Date: 'readonly',
Promise: 'readonly',
AbortController: 'readonly',
AbortSignal: 'readonly',
NodeList: 'readonly',
URLSearchParams: 'readonly',
connectElgatoStreamDeckSocket: 'readonly'
}
},
rules: {
'no-unused-vars': ['warn', {
vars: 'all',
args: 'none',
varsIgnorePattern: '^_'
}],
'no-console': 'off',
'no-undef': 'error'
},
files: ['src/**/*.js']
}
];