From c7909fdd865ead5c1f36f17a085e97099cb61b08 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Mon, 15 Jan 2024 17:05:33 +0300 Subject: [PATCH] Fixed ESLint --- src/loaders/neoforge/neoforge-metadata-custom-payload.ts | 2 +- tests/unit/loaders/forge/forge-metadata.spec.ts | 4 ++-- tests/unit/loaders/neoforge/neoforge-metadata.spec.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/loaders/neoforge/neoforge-metadata-custom-payload.ts b/src/loaders/neoforge/neoforge-metadata-custom-payload.ts index a3622bb..66cbb39 100644 --- a/src/loaders/neoforge/neoforge-metadata-custom-payload.ts +++ b/src/loaders/neoforge/neoforge-metadata-custom-payload.ts @@ -30,7 +30,7 @@ export type NeoForgeMetadataCustomPayload = { * @returns The custom payload attached to the given metadata. */ export function getNeoForgeMetadataCustomPayload(metadata: RawNeoForgeMetadata): NeoForgeMetadataCustomPayload { - return metadata?.[ACTION_NAME] || {} + return metadata?.[ACTION_NAME] || {}; } /** diff --git a/tests/unit/loaders/forge/forge-metadata.spec.ts b/tests/unit/loaders/forge/forge-metadata.spec.ts index 64c5c74..9af87fa 100644 --- a/tests/unit/loaders/forge/forge-metadata.spec.ts +++ b/tests/unit/loaders/forge/forge-metadata.spec.ts @@ -45,7 +45,7 @@ describe("ForgeMetadata", () => { }); describe("loaders", () => { - test(`returns 'forge' by default`, () => { + test("returns 'forge' by default", () => { const rawWithoutLoadersField = { ...RAW_METADATA, "mc-publish": { @@ -122,7 +122,7 @@ describe("ForgeMetadata", () => { } }); - test(`special dependencies ('forge', 'minecraft', 'java') are ignored by default`, () => { + test("special dependencies ('forge', 'minecraft', 'java') are ignored by default", () => { const metadata = ForgeMetadata.from(RAW_METADATA); const dependencies = metadata.dependencies; diff --git a/tests/unit/loaders/neoforge/neoforge-metadata.spec.ts b/tests/unit/loaders/neoforge/neoforge-metadata.spec.ts index a5fb908..f64484b 100644 --- a/tests/unit/loaders/neoforge/neoforge-metadata.spec.ts +++ b/tests/unit/loaders/neoforge/neoforge-metadata.spec.ts @@ -45,7 +45,7 @@ describe("NeoForgeMetadata", () => { }); describe("loaders", () => { - test(`returns 'neoforge' by default`, () => { + test("returns 'neoforge' by default", () => { const rawWithoutLoadersField = { ...RAW_METADATA, "mc-publish": { @@ -122,7 +122,7 @@ describe("NeoForgeMetadata", () => { } }); - test(`special dependencies ('neoforge', 'minecraft', 'java') are ignored by default`, () => { + test("special dependencies ('neoforge', 'minecraft', 'java') are ignored by default", () => { const metadata = NeoForgeMetadata.from(RAW_METADATA); const dependencies = metadata.dependencies;