Skip to content

Commit fbccf24

Browse files
committed
💄prettiers
1 parent 0ca7b41 commit fbccf24

28 files changed

+190
-186
lines changed

‎.prettierrc‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
{
1515
"files": "*.md",
1616
"options": { "tabWidth": 2 }
17-
},
18-
{
19-
"files": "*.svg",
20-
"options": { "parser": "html" }
2117
}
2218
]
2319
}

‎src/annotations/blameAnnotationProvider.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ export abstract class BlameAnnotationProviderBase extends AnnotationProviderBase
107107
Array.isArray(lookupTable)
108108
? lookupTable
109109
: unified
110-
? lookupTable.hot.concat(lookupTable.cold)
111-
: date.getTime() < coldThresholdTimestamp
112-
? lookupTable.cold
113-
: lookupTable.hot;
110+
? lookupTable.hot.concat(lookupTable.cold)
111+
: date.getTime() < coldThresholdTimestamp
112+
? lookupTable.cold
113+
: lookupTable.hot;
114114

115115
const computeRelativeAge = (date: Date, lookup: number[]) => {
116116
const time = date.getTime();

‎src/annotations/gutterChangesAnnotationProvider.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ export class GutterChangesAnnotationProvider extends AnnotationProviderBase<Chan
211211
decorationType: (hunkLine.state === 'added'
212212
? Decorations.changesLineAddedAnnotation
213213
: hunkLine.state === 'removed'
214-
? Decorations.changesLineDeletedAnnotation
215-
: Decorations.changesLineChangedAnnotation)!,
214+
? Decorations.changesLineDeletedAnnotation
215+
: Decorations.changesLineChangedAnnotation)!,
216216
rangesOrOptions: [{ range: range }],
217217
};
218218
decorationsMap.set(hunkLine.state, decoration);

‎src/commands/git/push.ts‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ export class PushGitCommand extends QuickCommand<State> {
242242
useForceIfIncludes
243243
? ' (with lease and if includes)'
244244
: useForceWithLease
245-
? ' (with lease)'
246-
: ''
245+
? ' (with lease)'
246+
: ''
247247
}`,
248248
description: `--force${
249249
useForceWithLease
@@ -254,8 +254,8 @@ export class PushGitCommand extends QuickCommand<State> {
254254
useForceIfIncludes
255255
? ' (with lease and if includes)'
256256
: useForceWithLease
257-
? ' (with lease)'
258-
: ''
257+
? ' (with lease)'
258+
: ''
259259
} ${branch?.state.ahead ? ` ${pluralize('commit', branch.state.ahead)}` : ''}${
260260
branch.getRemoteName() ? ` to ${branch.getRemoteName()}` : ''
261261
}${
@@ -406,8 +406,8 @@ export class PushGitCommand extends QuickCommand<State> {
406406
useForceIfIncludes
407407
? ' (with lease and if includes)'
408408
: useForceWithLease
409-
? ' (with lease)'
410-
: ''
409+
? ' (with lease)'
410+
: ''
411411
}`,
412412
description: `--force${
413413
useForceWithLease
@@ -418,8 +418,8 @@ export class PushGitCommand extends QuickCommand<State> {
418418
useForceIfIncludes
419419
? ' (with lease and if includes)'
420420
: useForceWithLease
421-
? ' (with lease)'
422-
: ''
421+
? ' (with lease)'
422+
: ''
423423
} ${pushDetails}${
424424
status != null && status.state.behind > 0
425425
? `, overwriting ${pluralize('commit', status.state.behind)}${

‎src/commands/quickCommand.ts‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ export type StepGenerator =
8888
export type StepItemType<T> = T extends CustomStep<infer U>
8989
? U
9090
: T extends QuickPickStep<infer U>
91-
? U[]
92-
: T extends QuickInputStep
93-
? string
94-
: never;
91+
? U[]
92+
: T extends QuickInputStep
93+
? string
94+
: never;
9595
export type StepNavigationKeys = Exclude<Keys, 'left' | 'alt+left' | 'ctrl+left'>;
9696
export const StepResultBreak = Symbol('BreakStep');
9797
export type StepResult<T> = typeof StepResultBreak | T;
@@ -112,10 +112,10 @@ export type AsyncStepResultGenerator<T> = AsyncGenerator<
112112
export type StepSelection<T> = T extends CustomStep<infer U>
113113
? U | Directive
114114
: T extends QuickPickStep<infer U>
115-
? U[] | Directive
116-
: T extends QuickInputStep
117-
? string | Directive
118-
: never;
115+
? U[] | Directive
116+
: T extends QuickInputStep
117+
? string | Directive
118+
: never;
119119
export type PartialStepState<T = unknown> = Partial<T> & { counter: number; confirm?: boolean; startingStep?: number };
120120
export type StepState<T = Record<string, unknown>> = T & { counter: number; confirm?: boolean; startingStep?: number };
121121

‎src/errors.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ export class ProviderNotFoundError extends Error {
192192
pathOrUri == null
193193
? String(pathOrUri)
194194
: typeof pathOrUri === 'string'
195-
? pathOrUri
196-
: pathOrUri.toString(true)
195+
? pathOrUri
196+
: pathOrUri.toString(true)
197197
}'`,
198198
);
199199

‎src/extension.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ function registerBuiltInActionRunners(container: Container): void {
273273
compare: ctx.branch.isRemote
274274
? getBranchNameWithoutRemote(ctx.branch.name)
275275
: ctx.branch.upstream
276-
? getBranchNameWithoutRemote(ctx.branch.upstream)
277-
: ctx.branch.name,
276+
? getBranchNameWithoutRemote(ctx.branch.upstream)
277+
: ctx.branch.name,
278278
remote: ctx.remote?.name ?? '',
279279
repoPath: ctx.repoPath,
280280
}));

‎src/plus/github/github.ts‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,14 @@ export class GitHubApi implements Disposable {
298298
!author.avatarUrl || isGitHubDotCom(options)
299299
? author.avatarUrl ?? undefined
300300
: author.email && options?.baseUrl != null
301-
? await this.createEnterpriseAvatarUrl(
302-
provider,
303-
token,
304-
options.baseUrl,
305-
author.email,
306-
options.avatarSize,
307-
)
308-
: undefined,
301+
? await this.createEnterpriseAvatarUrl(
302+
provider,
303+
token,
304+
options.baseUrl,
305+
author.email,
306+
options.avatarSize,
307+
)
308+
: undefined,
309309
};
310310
} catch (ex) {
311311
if (ex instanceof ProviderRequestNotFoundError) return undefined;
@@ -385,14 +385,14 @@ export class GitHubApi implements Disposable {
385385
!author.avatarUrl || isGitHubDotCom(options)
386386
? author.avatarUrl ?? undefined
387387
: author.email && options?.baseUrl != null
388-
? await this.createEnterpriseAvatarUrl(
389-
provider,
390-
token,
391-
options.baseUrl,
392-
author.email,
393-
options.avatarSize,
394-
)
395-
: undefined,
388+
? await this.createEnterpriseAvatarUrl(
389+
provider,
390+
token,
391+
options.baseUrl,
392+
author.email,
393+
options.avatarSize,
394+
)
395+
: undefined,
396396
};
397397
} catch (ex) {
398398
if (ex instanceof ProviderRequestNotFoundError) return undefined;

‎src/plus/github/githubGitProvider.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2924,8 +2924,8 @@ export class GitHubGitProvider implements GitProvider, Disposable {
29242924
options?.ordering === 'date'
29252925
? 'committer-date'
29262926
: options?.ordering === 'author-date'
2927-
? 'author-date'
2928-
: undefined,
2927+
? 'author-date'
2928+
: undefined,
29292929
});
29302930
if (result == null) return undefined;
29312931

@@ -3116,8 +3116,8 @@ export class GitHubGitProvider implements GitProvider, Disposable {
31163116
options?.ordering === 'date'
31173117
? 'committer-date'
31183118
: options?.ordering === 'author-date'
3119-
? 'author-date'
3120-
: undefined,
3119+
? 'author-date'
3120+
: undefined,
31213121
});
31223122

31233123
if (result == null || options?.cancellation?.isCancellationRequested) {

‎src/plus/gk/checkin.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ export function getSubscriptionFromCheckIn(data: GKCheckInResponse): Partial<Sub
9090
data.user.firstGitLensCheckIn != null
9191
? new Date(data.user.firstGitLensCheckIn)
9292
: data.user.createdDate != null
93-
? new Date(data.user.createdDate)
94-
: undefined,
93+
? new Date(data.user.createdDate)
94+
: undefined,
9595
);
9696
}
9797

0 commit comments

Comments
 (0)