Fixed ESLint

This commit is contained in:
Kir_Antipov 2024-01-15 17:05:33 +03:00
parent 6adbc23acb
commit c7909fdd86
3 changed files with 5 additions and 5 deletions

View file

@ -30,7 +30,7 @@ export type NeoForgeMetadataCustomPayload = {
* @returns The custom payload attached to the given metadata. * @returns The custom payload attached to the given metadata.
*/ */
export function getNeoForgeMetadataCustomPayload(metadata: RawNeoForgeMetadata): NeoForgeMetadataCustomPayload { export function getNeoForgeMetadataCustomPayload(metadata: RawNeoForgeMetadata): NeoForgeMetadataCustomPayload {
return metadata?.[ACTION_NAME] || {} return metadata?.[ACTION_NAME] || {};
} }
/** /**

View file

@ -45,7 +45,7 @@ describe("ForgeMetadata", () => {
}); });
describe("loaders", () => { describe("loaders", () => {
test(`returns 'forge' by default`, () => { test("returns 'forge' by default", () => {
const rawWithoutLoadersField = { const rawWithoutLoadersField = {
...RAW_METADATA, ...RAW_METADATA,
"mc-publish": { "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 metadata = ForgeMetadata.from(RAW_METADATA);
const dependencies = metadata.dependencies; const dependencies = metadata.dependencies;

View file

@ -45,7 +45,7 @@ describe("NeoForgeMetadata", () => {
}); });
describe("loaders", () => { describe("loaders", () => {
test(`returns 'neoforge' by default`, () => { test("returns 'neoforge' by default", () => {
const rawWithoutLoadersField = { const rawWithoutLoadersField = {
...RAW_METADATA, ...RAW_METADATA,
"mc-publish": { "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 metadata = NeoForgeMetadata.from(RAW_METADATA);
const dependencies = metadata.dependencies; const dependencies = metadata.dependencies;