diff --git a/src/commands/commit.ts b/src/commands/commit.ts index b2060c6..9618cef 100644 --- a/src/commands/commit.ts +++ b/src/commands/commit.ts @@ -31,7 +31,12 @@ const getGitRemotes = async () => { const hasUpstreamBranch = async (): Promise => { try { - await execa('git', ['rev-parse', '--abbrev-ref', '--symbolic-full-name', '@{u}']); + await execa('git', [ + 'rev-parse', + '--abbrev-ref', + '--symbolic-full-name', + '@{u}' + ]); return true; } catch { return false; diff --git a/src/commands/config.ts b/src/commands/config.ts index cff653f..f95e1f3 100644 --- a/src/commands/config.ts +++ b/src/commands/config.ts @@ -723,8 +723,7 @@ export const configValidators = { [CONFIG_KEYS.OCO_API_URL](value: any) { validateConfig( CONFIG_KEYS.OCO_API_URL, - typeof value === 'string' && - /^(https?:\/\/)/.test(value), + typeof value === 'string' && /^(https?:\/\/)/.test(value), `${value} is not a valid URL. It should start with 'http://' or 'https://'.` ); return value; diff --git a/src/prompts.ts b/src/prompts.ts index 8d831ad..0f2f728 100644 --- a/src/prompts.ts +++ b/src/prompts.ts @@ -98,8 +98,8 @@ const getCommitConvention = (fullGitMojiSpec: boolean) => fullGitMojiSpec ? FULL_GITMOJI_SPEC : config.OCO_EMOJI - ? GITMOJI_HELP - : CONVENTIONAL_COMMIT_KEYWORDS; + ? GITMOJI_HELP + : CONVENTIONAL_COMMIT_KEYWORDS; const getDescriptionInstruction = () => config.OCO_DESCRIPTION diff --git a/src/utils/proxy.ts b/src/utils/proxy.ts index f2ae46e..c0b5843 100644 --- a/src/utils/proxy.ts +++ b/src/utils/proxy.ts @@ -1,10 +1,6 @@ import axios from 'axios'; import { HttpsProxyAgent } from 'https-proxy-agent'; -import { - Agent, - ProxyAgent, - setGlobalDispatcher -} from 'undici'; +import { Agent, ProxyAgent, setGlobalDispatcher } from 'undici'; export type ProxySetting = string | null | undefined;