1
0
mirror of synced 2025-12-19 09:57:42 -05:00

Fix eslint no-undef violations (#58233)

This commit is contained in:
Kevin Heis
2025-10-30 09:13:18 -07:00
committed by GitHub
parent 8139ef18e5
commit 4f46d28722
30 changed files with 41 additions and 10 deletions

View File

@@ -25,6 +25,16 @@ export default [
...globals.node,
...globals.commonjs,
...globals.es2020,
// Fetch API types for TypeScript
RequestInit: 'readonly',
RequestInfo: 'readonly',
HeadersInit: 'readonly',
JSX: 'readonly',
// Node.js types for TypeScript
BufferEncoding: 'readonly',
NodeJS: 'readonly',
// cheerio namespace for TypeScript
cheerio: 'readonly',
},
parserOptions: {
requireConfigFile: false,
@@ -87,7 +97,6 @@ export default [
// Disabled rules to review
'github/no-then': 'off', // 30+
'@typescript-eslint/ban-ts-comment': 'off', // 50+
'no-undef': 'off', // 50+
'no-shadow': 'off', // 150+
'prefer-template': 'off', // 150+
'github/array-foreach': 'off', // 250+