refactor: 更换 ESLint 配置为 @antfu/eslint-config

This commit is contained in:
2024-05-10 22:29:45 +08:00
parent 5101dd12d9
commit bfc8e42bad
148 changed files with 7314 additions and 5046 deletions

View File

@@ -6,7 +6,7 @@ export default function createAutoImport() {
imports: [
'vue',
'vue-router',
'pinia',
'pinia'
],
dts: './src/types/auto-imports.d.ts'
})

View File

@@ -6,6 +6,6 @@ export default function createComponents() {
dirs: ['src/components'],
extensions: ['vue', 'tsx'],
// 配置文件生成位置
dts: './src/types/components.d.ts',
dts: './src/types/components.d.ts'
})
}

View File

@@ -8,6 +8,6 @@ export default function createSvgIcon(isBuild) {
iconDirs: [path.resolve(process.cwd(), 'src/assets/icons')],
// 指定 symbolId 格式
symbolId: 'icon-[dir]-[name]',
svgoOptions: isBuild,
svgoOptions: isBuild
})
}