fix(eslint): ignore no-undef

This commit is contained in:
FoxxMD 2026-07-09 01:59:46 +00:00
parent f2e2d67668
commit 69b19da6aa

View file

@ -86,5 +86,12 @@ export default defineConfig([
"@typescript-eslint/no-unused-expressions": 'off',
'mocha/max-top-level-suites': 'off'
},
},
{
// https://typescript-eslint.io/troubleshooting/faqs/eslint#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
files: ['**/*.{ts,tsx,mts,cts}'],
rules: {
'no-undef': 'off',
}
}
]);