From 1fc34e6c06458c4ddd3f7cced5c9b720af6a5c5e Mon Sep 17 00:00:00 2001 From: HomWang <516310460@qq.com> Date: Sun, 4 Sep 2022 16:31:08 +0800 Subject: [PATCH] chore: lint (#7213) --- packages/nuxt/src/app/plugins/logs.client.dev.ts | 2 +- packages/vite/src/utils/external.ts | 2 +- packages/webpack/src/plugins/vue/server.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nuxt/src/app/plugins/logs.client.dev.ts b/packages/nuxt/src/app/plugins/logs.client.dev.ts index acf7663b61..27eecafe7c 100644 --- a/packages/nuxt/src/app/plugins/logs.client.dev.ts +++ b/packages/nuxt/src/app/plugins/logs.client.dev.ts @@ -6,7 +6,7 @@ export default defineNuxtPlugin((nuxtApp) => { if (logs.length > 0) { const ssrLogStyle = 'background: #003C3C;border-radius: 0.5em;color: white;font-weight: bold;padding: 2px 0.5em;' console.groupCollapsed && console.groupCollapsed('%cNuxt Server Logs', ssrLogStyle) - logs.forEach((logObj:any) => (console[logObj.type as 'log'] || console.log)(...logObj.args)) + logs.forEach((logObj: any) => (console[logObj.type as 'log'] || console.log)(...logObj.args)) delete nuxtApp.payload.logs console.groupEnd && console.groupEnd() } diff --git a/packages/vite/src/utils/external.ts b/packages/vite/src/utils/external.ts index c2e4fd8ef3..2fb473d4b5 100644 --- a/packages/vite/src/utils/external.ts +++ b/packages/vite/src/utils/external.ts @@ -19,5 +19,5 @@ export function createIsExternal (viteServer: ViteDevServer, rootDir: string) { } } - return (id:string) => isExternal(id, rootDir, externalOpts) + return (id: string) => isExternal(id, rootDir, externalOpts) } diff --git a/packages/webpack/src/plugins/vue/server.ts b/packages/webpack/src/plugins/vue/server.ts index bc5769b5e8..b956b0ac35 100644 --- a/packages/webpack/src/plugins/vue/server.ts +++ b/packages/webpack/src/plugins/vue/server.ts @@ -30,7 +30,7 @@ export default class VueSSRServerPlugin { return cb() } - const entryAssets = entryInfo.assets!.filter((asset: { name:string }) => isJS(asset.name)) + const entryAssets = entryInfo.assets!.filter((asset: { name: string }) => isJS(asset.name)) if (entryAssets.length > 1) { throw new Error(