mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-08 22:57:11 +08:00
refactor: 调整 eslint.config.js,优化代码格式
This commit is contained in:
@@ -16,10 +16,10 @@ export default function appInfo(): Plugin {
|
||||
padding: 1,
|
||||
margin: 1,
|
||||
borderStyle: 'double',
|
||||
textAlignment: 'center'
|
||||
}
|
||||
)
|
||||
textAlignment: 'center',
|
||||
},
|
||||
),
|
||||
)
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@@ -5,8 +5,8 @@ export default function createAutoImport() {
|
||||
// 自动导入 vue 相关函数
|
||||
imports: ['vue', 'vue-router', {
|
||||
// vue 3.5.x
|
||||
vue: ['useTemplateRef', 'onWatcherCleanup', 'useId']
|
||||
vue: ['useTemplateRef', 'onWatcherCleanup', 'useId'],
|
||||
}],
|
||||
dts: './src/types/auto-imports.d.ts'
|
||||
dts: './src/types/auto-imports.d.ts',
|
||||
})
|
||||
}
|
||||
|
@@ -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',
|
||||
})
|
||||
}
|
||||
|
@@ -12,6 +12,6 @@ export default function createMock(env, isBuild) {
|
||||
injectCode: `
|
||||
import { setupProdMockServer } from '../src/mock/index';
|
||||
setupProdMockServer();
|
||||
`
|
||||
`,
|
||||
})
|
||||
}
|
||||
|
@@ -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,
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user