Skip to content

Commit 62579f6

Browse files
Declare fetch/AbortController/timer globals for eslint
The refetch logic uses fetch, AbortController, setTimeout and clearTimeout. The flat eslint config lists allowed globals explicitly, so add these four to stop no-undef from failing CI lint.
1 parent 759ad8a commit 62579f6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

eslint.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ export default [
66
globals: {
77
node: true,
88
es6: true,
9-
URL: "readonly"
9+
URL: "readonly",
10+
fetch: "readonly",
11+
AbortController: "readonly",
12+
setTimeout: "readonly",
13+
clearTimeout: "readonly"
1014
},
1115
parserOptions: {
1216
ecmaVersion: 'latest',

0 commit comments

Comments
 (0)