From cd1d9a52ba5a1c85a0fc98808307146a2a56bbca Mon Sep 17 00:00:00 2001 From: Junior Garcia Date: Thu, 13 Jun 2024 23:04:11 -0300 Subject: [PATCH] chore: fix import formatting in init.ts, math-diff.ts, and setup.ts --- src/helpers/init.ts | 8 ++++---- src/helpers/math-diff.ts | 2 +- src/helpers/setup.ts | 13 +++++++------ 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/helpers/init.ts b/src/helpers/init.ts index ce48c1b..7218ef3 100644 --- a/src/helpers/init.ts +++ b/src/helpers/init.ts @@ -1,9 +1,9 @@ -import type { SAFE_ANY } from './type'; +import type {SAFE_ANY} from './type'; -import { type InitActionOptions, templatesMap } from 'src/actions/init-action'; +import {type InitActionOptions, templatesMap} from 'src/actions/init-action'; -import { AGENTS, type Agent } from './detect'; -import { printMostMatchText } from './math-diff'; +import {AGENTS, type Agent} from './detect'; +import {printMostMatchText} from './math-diff'; export function checkInitOptions(template: InitActionOptions['template'], agent: Agent) { if (template) { diff --git a/src/helpers/math-diff.ts b/src/helpers/math-diff.ts index 09a1922..9f696b1 100644 --- a/src/helpers/math-diff.ts +++ b/src/helpers/math-diff.ts @@ -1,4 +1,4 @@ -import { Logger } from './logger'; +import {Logger} from './logger'; function matchTextScore(text: string, pattern: string) { let score = 0; diff --git a/src/helpers/setup.ts b/src/helpers/setup.ts index 508e494..2f265e7 100644 --- a/src/helpers/setup.ts +++ b/src/helpers/setup.ts @@ -1,12 +1,13 @@ -import { existsSync, writeFileSync } from 'node:fs'; +import type {Agent} from './detect'; -import { resolver } from 'src/constants/path'; -import { pnpmRequired } from 'src/constants/required'; +import {existsSync, writeFileSync } from 'node:fs'; -import { checkPnpm } from './check'; -import { type Agent } from './detect'; -import { fixPnpm } from './fix'; +import {resolver} from 'src/constants/path'; +import {pnpmRequired} from 'src/constants/required'; + +import {checkPnpm} from './check'; +import {fixPnpm} from './fix'; export async function setupPnpm(packageManager: Agent) { if (packageManager === 'pnpm') {