fix: fix build warning and linter error

This commit is contained in:
2026-07-19 16:25:46 +08:00
parent 0402f2d2b7
commit 108d1bac5c
5 changed files with 33 additions and 4 deletions
+17
View File
@@ -20,4 +20,21 @@ export default defineConfigWithVueTs(
vueTsConfigs.recommended,
...pluginOxlint.buildFromOxlintConfigFile('.oxlintrc.json'),
// 该前端由旧前端迁移而来,不得已使用 any,因此关闭此规则
{
name: 'app/legacy-no-explicit-any',
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
},
// views/ 目录下为路由页面级组件,非通用组件,不会与 HTML 原生元素冲突,因此关闭多词组件名检查
{
name: 'app/views-single-word',
files: ['src/views/**/*.vue'],
rules: {
'vue/multi-word-component-names': 'off',
},
},
)