chore: 使 @typescript-eslint/consistent-type-imports 工作

This commit is contained in:
BaboonKing 2024-11-20 19:39:35 +08:00
parent d60063e15e
commit ed54299736

View File

@ -30,6 +30,11 @@ export default [
...vueTsEslintConfig(), ...vueTsEslintConfig(),
skipFormatting, skipFormatting,
{ {
languageOptions: {
parserOptions: {
parser: '@typescript-eslint/parser'
}
},
rules: { rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',