-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
50 lines (49 loc) · 1.53 KB
/
eslint.config.js
File metadata and controls
50 lines (49 loc) · 1.53 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
import html from "eslint-plugin-html";
export default [
{
files: ["**/*.html"],
plugins: { html },
languageOptions: {
ecmaVersion: 2022,
sourceType: "script",
globals: {
// Browser environment
window: "readonly",
document: "readonly",
navigator: "readonly",
localStorage: "readonly",
sessionStorage: "readonly",
console: "readonly",
alert: "readonly",
confirm: "readonly",
prompt: "readonly",
setTimeout: "readonly",
clearTimeout: "readonly",
setInterval: "readonly",
clearInterval: "readonly",
performance: "readonly",
URL: "readonly",
Blob: "readonly",
File: "readonly",
FileReader: "readonly",
FormData: "readonly",
Event: "readonly",
CustomEvent: "readonly",
HTMLElement: "readonly",
ArrayBuffer: "readonly",
DataView: "readonly",
Uint8Array: "readonly",
BigInt: "readonly",
fetch: "readonly",
AbortController: "readonly",
TextEncoder: "readonly",
TextDecoder: "readonly",
},
},
rules: {
"no-unused-vars": ["warn", {
varsIgnorePattern: "^(toggleConnection|disconnect|toggleSection|saveCurrentProfile|exportProfile|importProfile|loadSaved|delSaved|openProfile|closeProfile|openAbout|closeAbout|sendQuery|setFC|togglePolling|clearLog|addProfileEntry|copyFirstToAll|reRender|clearActiveProfile|updateOffsetUI|updateWirePreview)$"
}],
},
},
];