1- import globals from "globals" ;
2-
31export default [
42 {
53 files : [ "**/*.html" , "**/*.js" ] ,
64 languageOptions : {
75 ecmaVersion : 2022 ,
86 sourceType : "script" ,
97 globals : {
10- ...globals . browser ,
8+ // Browser environment
9+ window : "readonly" ,
10+ document : "readonly" ,
11+ navigator : "readonly" ,
12+ localStorage : "readonly" ,
13+ sessionStorage : "readonly" ,
14+ console : "readonly" ,
15+ alert : "readonly" ,
16+ confirm : "readonly" ,
17+ prompt : "readonly" ,
18+ setTimeout : "readonly" ,
19+ clearTimeout : "readonly" ,
20+ setInterval : "readonly" ,
21+ clearInterval : "readonly" ,
22+ performance : "readonly" ,
23+ URL : "readonly" ,
24+ Blob : "readonly" ,
25+ File : "readonly" ,
26+ FileReader : "readonly" ,
27+ FormData : "readonly" ,
28+ Event : "readonly" ,
29+ CustomEvent : "readonly" ,
30+ HTMLElement : "readonly" ,
31+ ArrayBuffer : "readonly" ,
32+ DataView : "readonly" ,
33+ Uint8Array : "readonly" ,
34+ BigInt : "readonly" ,
35+ fetch : "readonly" ,
36+ AbortController : "readonly" ,
37+ TextEncoder : "readonly" ,
38+ TextDecoder : "readonly" ,
1139 } ,
1240 } ,
1341 rules : {
14- // Functions called from HTML onclick attributes appear unused to ESLint
42+ // Functions called from HTML onclick/onchange attributes appear unused to ESLint
1543 "no-unused-vars" : [ "warn" , {
1644 varsIgnorePattern : "^(toggleConnection|disconnect|toggleSection|saveCurrentProfile|exportProfile|importProfile|loadSaved|delSaved|openProfile|closeProfile|openAbout|closeAbout|sendQuery|setFC|togglePolling|clearLog|addProfileEntry|copyFirstToAll|reRender|clearActiveProfile|updateOffsetUI|updateWirePreview)$"
1745 } ] ,
1846 } ,
1947 } ,
20- ] ;
48+ ] ;
0 commit comments