feat: 添加 eslint-plugin-unicorn 依赖,更新 ESLint 配置以支持新规则

This commit is contained in:
严浩 committed 2025-03-14 12:50:54 +08:00
1 parent 8b12d3e3dd
commit 31909c906d
24 files changed
+520 -294

No files matched your search

+2 -2
View File
@@ -4,8 +4,8 @@ import { defineBasicLoader } from 'unplugin-vue-router/data-loaders/basic';
export const usePageData = defineBasicLoader(
'DataLoadersId',
async (route, ...otherArgs) => {
console.log('[DefineLoaderFn]', 'otherArgs :>> ', otherArgs);
async (route, ...otherArguments) => {
console.log('[DefineLoaderFn]', 'otherArgs :>>', otherArguments);
await new Promise((resolve) => setTimeout(resolve, 777));
return { idFromPreviousPage: route.params.id, someOtherData: 'someOtherData' };
},