fix(#1): add Node.js globals to ESLint config
ci/woodpecker/push/woodpecker Pipeline failed

ESLint 9 flat config requires explicit globals. Without them, Node.js
builtins (fetch, crypto, setTimeout, AbortController, etc.) trigger
no-undef errors, blocking the CI pipeline.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
2026-02-14 22:43:21 -06:00
co-authored by Claude Opus 4.6
parent 231a799a46
commit 07bf9dd9b4
+4
View File
@@ -1,4 +1,5 @@
import eslint from '@eslint/js';
import globals from 'globals';
import tseslint from '@typescript-eslint/eslint-plugin';
import tsparser from '@typescript-eslint/parser';
@@ -12,6 +13,9 @@ export default [
ecmaVersion: 2022,
sourceType: 'module',
},
globals: {
...globals.nodeBuiltin,
},
},
plugins: {
'@typescript-eslint': tseslint,