fix: fix build warning and linter error
This commit is contained in:
@@ -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',
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user