style(prettier): format source files

This commit is contained in:
di-sukharev
2026-04-10 15:20:27 +03:00
parent 88964cbc5e
commit 57fb52a3c5
4 changed files with 10 additions and 10 deletions

View File

@@ -31,7 +31,12 @@ const getGitRemotes = async () => {
const hasUpstreamBranch = async (): Promise<boolean> => {
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;

View File

@@ -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;

View File

@@ -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

View File

@@ -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;