Skip to content

Commit 109087f

Browse files
author
keindev
committed
types: fix lint errors
1 parent b8d860b commit 109087f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/ProgressBar.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,26 +77,27 @@ export class ProgressBar implements Required<Omit<IProgressBarOptions, 'current'
7777
readonly clear: boolean = false;
7878
/** Completion character */
7979
readonly completeChar = figures.square;
80-
#current = Progress.Start;
81-
#end: number | undefined;
8280
/** Option to add gradient to pending bar */
8381
readonly gradient: boolean = true;
8482
/** Incomplete character */
8583
readonly incompleteChar = figures.square;
86-
#start = new Date().getTime();
87-
#status = TaskStatus.Pending;
8884
/**
8985
* Output template
9086
*
9187
* @default `:bar :rate/bps :percent :eta/s`
9288
*/
9389
readonly template: string;
94-
#tokens: Map<TemplateToken | string, string> = new Map();
9590
/** Total number of ticks to complete */
9691
readonly total = Progress.End;
9792
/** The displayed width of the progress bar defaulting to total */
9893
readonly width: number = 20;
9994

95+
#current = Progress.Start;
96+
#end: number | undefined;
97+
#start = new Date().getTime();
98+
#status = TaskStatus.Pending;
99+
#tokens: Map<TemplateToken | string, string> = new Map();
100+
100101
constructor(template?: string, options?: IProgressBarOptions) {
101102
this.template =
102103
template ||

src/Theme.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export enum IndicationColor {
3131
Message = '#2e2e2e',
3232
Info = '#33b5e5',
3333
Warning = '#ffbb33',
34+
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
3435
Subtask = '#2e2e2e',
36+
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
3537
List = '#4285f4',
3638
Dim = '#838584',
3739
}

0 commit comments

Comments
 (0)