Skip to content

Commit a261d45

Browse files
committed
chore: fix shared-lib linter errors
1 parent 0510a57 commit a261d45

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

packages/shared-lib/src/lib/JSONBlob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Data type for stringified data using JSONBlobStringify().
1717
* To parse the data, use JSONBlobParse()
1818
*/
19-
// eslint-disable-next-line @typescript-eslint/ban-types
19+
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
2020
export interface JSONBlob<T> extends String {
2121
__internal: T
2222
}

packages/shared-lib/src/lib/JSONSchemaTypes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
* POSSIBILITY OF SUCH DAMAGE.
3434
*/
3535

36+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
3637
export const draft = '2020-12' as const
38+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
3739
export const $schema = 'https://json-schema.org/draft/2020-12/schema' as const
3840

3941
type MaybeReadonlyArray<T> = Array<T> | ReadonlyArray<T>

packages/shared-lib/src/lib/JobQueueWithClasses.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ export class JobQueueWithClasses {
9696
Promise.resolve()
9797
.then(async () => {
9898
this.#paused = false
99-
// eslint-disable-next-line no-constant-condition
10099
while (true) {
101100
const firstIn = this.#queue.shift()
102101
if (!firstIn) {

packages/shared-lib/src/lib/protectedString.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/ban-types */
2-
31
import { PartialDeep, ReadonlyDeep } from 'type-fest'
42

53
/** Runtime-wise, this is a string.

packages/shared-lib/src/lib/stringifyError.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export function stringifyError(error: unknown, noStack = false): string {
2525
// Try to stringify the object:
2626
str = JSON.stringify(error)
2727
} catch (e) {
28+
// eslint-disable-next-line @typescript-eslint/no-base-to-string
2829
str = `${error} (stringifyError: ${e})`
2930
}
3031
}

packages/shared-lib/src/package-manager/package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ export namespace AccessorOnPackage {
434434
guid?: string
435435
title?: string
436436
}
437-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
437+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
438438
export interface CorePackageCollection extends Partial<Accessor.CorePackageCollection> {
439439
// empty
440440
}

0 commit comments

Comments
 (0)