Skip to content

Commit ae96219

Browse files
vveerrggclaude
andcommitted
fix: add Node.js globals to ESLint config
Add fetch, setInterval, clearInterval, Buffer, setTimeout, clearTimeout to ESLint globals to prevent no-undef errors for standard Node.js/browser APIs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8cedd9d commit ae96219

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

eslint.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ export default [
1616
console: 'readonly',
1717
process: 'readonly',
1818
window: 'readonly',
19-
jest: 'readonly'
19+
jest: 'readonly',
20+
fetch: 'readonly',
21+
setInterval: 'readonly',
22+
clearInterval: 'readonly',
23+
Buffer: 'readonly',
24+
setTimeout: 'readonly',
25+
clearTimeout: 'readonly'
2026
}
2127
},
2228
plugins: {

0 commit comments

Comments
 (0)