mirror of
https://github.com/motajs/template.git
synced 2026-09-12 09:30:19 +08:00
style(03-05): normalize scoped data gate formatting
This commit is contained in:
parent
232df083f7
commit
2794dfc32d
@ -1,8 +1,4 @@
|
||||
import {
|
||||
Hookable,
|
||||
HookController,
|
||||
IHookController
|
||||
} from '@motajs/common';
|
||||
import { Hookable, HookController, IHookController } from '@motajs/common';
|
||||
import {
|
||||
FaceDirection,
|
||||
IDataCommon,
|
||||
|
||||
@ -1,8 +1,4 @@
|
||||
import {
|
||||
IHookBase,
|
||||
IHookable,
|
||||
ITileLocator
|
||||
} from '@motajs/common';
|
||||
import { IHookBase, IHookable, ITileLocator } from '@motajs/common';
|
||||
import {
|
||||
FaceDirection,
|
||||
IDataCommonExtended,
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user