Skip to content

Commit e1858e6

Browse files
ematipicoastrobot-houston
authored andcommitted
[ci] format
1 parent 75921b3 commit e1858e6

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

packages/astro/src/cli/check/index.ts

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
/* eslint-disable no-console */
22
import { AstroCheck, DiagnosticSeverity, GetDiagnosticsResult } from '@astrojs/language-server';
3+
import type { FSWatcher } from 'chokidar';
34
import glob from 'fast-glob';
4-
import * as fs from 'fs';
5+
import fsMod, * as fs from 'fs';
56
import { bold, dim, red, yellow } from 'kleur/colors';
67
import { createRequire } from 'module';
8+
import { join } from 'node:path';
79
import ora from 'ora';
810
import { fileURLToPath, pathToFileURL } from 'url';
9-
import { Arguments } from 'yargs-parser';
11+
import type { Arguments as Flags } from 'yargs-parser';
1012
import type { AstroSettings } from '../../@types/astro';
1113
import type { LogOptions } from '../../core/logger/core.js';
12-
import { printHelp } from '../../core/messages.js';
13-
import { printDiagnostic } from './print.js';
14-
import type { Arguments as Flags } from 'yargs-parser';
1514
import { debug, info } from '../../core/logger/core.js';
15+
import { printHelp } from '../../core/messages.js';
1616
import type { ProcessExit, SyncOptions } from '../../core/sync';
17-
import fsMod from 'fs';
18-
import type { FSWatcher } from 'chokidar';
19-
import { join } from 'node:path';
17+
import { printDiagnostic } from './print.js';
2018

2119
type DiagnosticResult = {
2220
errors: number;

packages/astro/src/cli/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { enableVerboseLogging, nodeLogDestination } from '../core/logger/node.js
1818
import { formatConfigErrorMessage, formatErrorMessage, printHelp } from '../core/messages.js';
1919
import * as event from '../events/index.js';
2020
import { eventConfigError, eventError, telemetry } from '../events/index.js';
21-
import { check, CheckResult } from './check/index.js';
21+
import { check } from './check/index.js';
2222
import { openInBrowser } from './open.js';
2323

2424
type Arguments = yargs.Arguments;

packages/astro/src/core/sync/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ import { dim } from 'kleur/colors';
22
import type fsMod from 'node:fs';
33
import { performance } from 'node:perf_hooks';
44
import { createServer } from 'vite';
5+
import type { Arguments } from 'yargs-parser';
56
import type { AstroSettings } from '../../@types/astro';
67
import { createContentTypesGenerator } from '../../content/index.js';
78
import { globalContentConfigObserver } from '../../content/utils.js';
89
import { runHookConfigSetup } from '../../integrations/index.js';
910
import { setUpEnvTs } from '../../vite-plugin-inject-env-ts/index.js';
1011
import { getTimeStat } from '../build/util.js';
12+
import { createVite } from '../create-vite.js';
1113
import { AstroError, AstroErrorData } from '../errors/index.js';
1214
import { info, LogOptions } from '../logger/core.js';
1315
import { printHelp } from '../messages.js';
14-
import type { Arguments } from 'yargs-parser';
15-
import { createVite } from '../create-vite.js';
1616

1717
export type ProcessExit = 0 | 1;
1818

0 commit comments

Comments
 (0)