feat: 添加 eslint-plugin-unicorn 依赖,更新 ESLint 配置以支持新规则
This commit is contained in:
@ -135,7 +135,7 @@ export function Plugins() {
|
||||
VueI18n({
|
||||
/* options */
|
||||
// locale messages resource pre-compile option
|
||||
include: [path.resolve(__dirname, './src/locales/**')],
|
||||
include: [path.resolve(import.meta.dirname, './src/locales/**')],
|
||||
|
||||
// https://github.com/intlify/bundle-tools/tree/main/packages/unplugin-vue-i18n#transformi18nblock
|
||||
// transformI18nBlock(src) {
|
||||
@ -152,8 +152,8 @@ export function Plugins() {
|
||||
return svg.replace(/^<svg /, '<svg fill="currentColor" ');
|
||||
}),
|
||||
},
|
||||
iconCustomizer(collection, icon, props) {
|
||||
props.class = 'unplugin-icons';
|
||||
iconCustomizer(collection, icon, properties) {
|
||||
properties.class = 'unplugin-icons';
|
||||
},
|
||||
}),
|
||||
|
||||
@ -187,9 +187,6 @@ export function Plugins() {
|
||||
VueDevTools({
|
||||
// launchEditor: env.LAUNCH_EDITOR,
|
||||
}),
|
||||
);
|
||||
|
||||
plugins.push(
|
||||
// https://github.com/unplugin/unplugin-vue-components/issues/664$0
|
||||
// https://github.com/VaJoy/vite-plugin-cdn-import-async$0
|
||||
// https://github.com/mmf-fe/vite-plugin-cdn-import/blob/HEAD/README.zh-CN.md
|
||||
|
Reference in New Issue
Block a user