linting and bugfixing

This commit is contained in:
2025-11-09 01:49:21 +00:00
parent e734ec8f37
commit e8f53f4282
5 changed files with 149 additions and 170 deletions
+10 -1
View File
@@ -24,7 +24,16 @@ export default defineConfig(
rules: {
// typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects.
// see: 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
'no-undef': 'off'
'no-undef': 'off',
// Allow underscore prefix for unused variables
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_'
}
]
}
},
{