From e1858e633484d0e1eca0e3ad72af679fc12271e0 Mon Sep 17 00:00:00 2001 From: ematipico Date: Tue, 7 Mar 2023 06:57:52 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/cli/check/index.ts | 14 ++++++-------- packages/astro/src/cli/index.ts | 2 +- packages/astro/src/core/sync/index.ts | 4 ++-- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/packages/astro/src/cli/check/index.ts b/packages/astro/src/cli/check/index.ts index 531d4fb8be..de3257d165 100644 --- a/packages/astro/src/cli/check/index.ts +++ b/packages/astro/src/cli/check/index.ts @@ -1,22 +1,20 @@ /* eslint-disable no-console */ import { AstroCheck, DiagnosticSeverity, GetDiagnosticsResult } from '@astrojs/language-server'; +import type { FSWatcher } from 'chokidar'; import glob from 'fast-glob'; -import * as fs from 'fs'; +import fsMod, * as fs from 'fs'; import { bold, dim, red, yellow } from 'kleur/colors'; import { createRequire } from 'module'; +import { join } from 'node:path'; import ora from 'ora'; import { fileURLToPath, pathToFileURL } from 'url'; -import { Arguments } from 'yargs-parser'; +import type { Arguments as Flags } from 'yargs-parser'; import type { AstroSettings } from '../../@types/astro'; import type { LogOptions } from '../../core/logger/core.js'; -import { printHelp } from '../../core/messages.js'; -import { printDiagnostic } from './print.js'; -import type { Arguments as Flags } from 'yargs-parser'; import { debug, info } from '../../core/logger/core.js'; +import { printHelp } from '../../core/messages.js'; import type { ProcessExit, SyncOptions } from '../../core/sync'; -import fsMod from 'fs'; -import type { FSWatcher } from 'chokidar'; -import { join } from 'node:path'; +import { printDiagnostic } from './print.js'; type DiagnosticResult = { errors: number; diff --git a/packages/astro/src/cli/index.ts b/packages/astro/src/cli/index.ts index 806393b47f..4d11ebc18e 100644 --- a/packages/astro/src/cli/index.ts +++ b/packages/astro/src/cli/index.ts @@ -18,7 +18,7 @@ import { enableVerboseLogging, nodeLogDestination } from '../core/logger/node.js import { formatConfigErrorMessage, formatErrorMessage, printHelp } from '../core/messages.js'; import * as event from '../events/index.js'; import { eventConfigError, eventError, telemetry } from '../events/index.js'; -import { check, CheckResult } from './check/index.js'; +import { check } from './check/index.js'; import { openInBrowser } from './open.js'; type Arguments = yargs.Arguments; diff --git a/packages/astro/src/core/sync/index.ts b/packages/astro/src/core/sync/index.ts index b4e0b32655..914783331c 100644 --- a/packages/astro/src/core/sync/index.ts +++ b/packages/astro/src/core/sync/index.ts @@ -2,17 +2,17 @@ import { dim } from 'kleur/colors'; import type fsMod from 'node:fs'; import { performance } from 'node:perf_hooks'; import { createServer } from 'vite'; +import type { Arguments } from 'yargs-parser'; import type { AstroSettings } from '../../@types/astro'; import { createContentTypesGenerator } from '../../content/index.js'; import { globalContentConfigObserver } from '../../content/utils.js'; import { runHookConfigSetup } from '../../integrations/index.js'; import { setUpEnvTs } from '../../vite-plugin-inject-env-ts/index.js'; import { getTimeStat } from '../build/util.js'; +import { createVite } from '../create-vite.js'; import { AstroError, AstroErrorData } from '../errors/index.js'; import { info, LogOptions } from '../logger/core.js'; import { printHelp } from '../messages.js'; -import type { Arguments } from 'yargs-parser'; -import { createVite } from '../create-vite.js'; export type ProcessExit = 0 | 1;