From 2794dfc32d3fcab13d75b34d83a02a2c37ac40ff Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Thu, 10 Sep 2026 17:53:33 +0800 Subject: [PATCH] style(03-05): normalize scoped data gate formatting --- packages-user/data-base/src/hero/location.ts | 6 +----- packages-user/data-base/src/hero/types.ts | 6 +----- script/check-data-type.ts | 7 +++++-- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/packages-user/data-base/src/hero/location.ts b/packages-user/data-base/src/hero/location.ts index df1fc11..ba50cfd 100644 --- a/packages-user/data-base/src/hero/location.ts +++ b/packages-user/data-base/src/hero/location.ts @@ -1,8 +1,4 @@ -import { - Hookable, - HookController, - IHookController -} from '@motajs/common'; +import { Hookable, HookController, IHookController } from '@motajs/common'; import { FaceDirection, IDataCommon, diff --git a/packages-user/data-base/src/hero/types.ts b/packages-user/data-base/src/hero/types.ts index dfb4959..ecfeaa9 100644 --- a/packages-user/data-base/src/hero/types.ts +++ b/packages-user/data-base/src/hero/types.ts @@ -1,8 +1,4 @@ -import { - IHookBase, - IHookable, - ITileLocator -} from '@motajs/common'; +import { IHookBase, IHookable, ITileLocator } from '@motajs/common'; import { FaceDirection, IDataCommonExtended, diff --git a/script/check-data-type.ts b/script/check-data-type.ts index 9d67f24..e097d3b 100644 --- a/script/check-data-type.ts +++ b/script/check-data-type.ts @@ -33,7 +33,8 @@ function parseDiagnostics(output: string): { } { const diagnostics: ITypeDiagnostic[] = []; const unparsed: string[] = []; - const pattern = /^(.*?\.(?:ts|tsx|vue))\((\d+),(\d+)\): error (TS\d+): (.*)$/; + const pattern = + /^(.*?\.(?:ts|tsx|vue))\((\d+),(\d+)\): error (TS\d+): (.*)$/; for (const line of output.split(/\r?\n/)) { if (!line.includes('error TS')) continue; @@ -62,7 +63,9 @@ const result = spawnSync( ); if (result.error) { - console.error(`type gate could not execute vue-tsc: ${result.error.message}`); + console.error( + `type gate could not execute vue-tsc: ${result.error.message}` + ); process.exit(1); }