Skip to content

Commit

Permalink
Apply automatic fixes after ESLint config change
Browse files Browse the repository at this point in the history
  • Loading branch information
brawaru committed Jul 29, 2024
1 parent 758720b commit ca03e38
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/frontend/src/components/ui/ProjectMemberHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ const nags = computed(() => [
},
},
{
condition: props.project.gallery.length === 0 || !featuredGalleryImage,
condition: props.project.gallery.length === 0 || !featuredGalleryImage.value,
title: "Feature a gallery image",
id: "feature-gallery-image",
description: "Featured gallery images may be the first impression of many users.",
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/composables/date.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime";

dayjs.extend(relativeTime); // eslint-disable-line import/no-named-as-default-member
dayjs.extend(relativeTime);

export const useCurrentDate = () => useState("currentDate", () => Date.now());

Expand Down
4 changes: 2 additions & 2 deletions apps/frontend/src/composables/display-names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function createDisplayNames(
of(tag: string) {
let attempt = 0;

// eslint-disable-next-line no-labels
lookupLoop: do {
let lookup: string;
switch (attempt) {
Expand All @@ -51,7 +51,7 @@ export function createDisplayNames(
lookup = safeTagFor(tag);
break;
default:
// eslint-disable-next-line no-labels
break lookupLoop;
}

Expand Down
6 changes: 3 additions & 3 deletions apps/frontend/src/helpers/infer.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,23 +97,23 @@ export const inferVersionInfo = async function (rawFile, project, gameVersions)
const inferFunctions = {
// Forge 1.13+ and NeoForge
"META-INF/mods.toml": async (file, zip) => {
const metadata = TOML.parse(file, { joiner: "\n" }); // eslint-disable-line import/no-named-as-default-member
const metadata = TOML.parse(file, { joiner: "\n" });

if (metadata.mods && metadata.mods.length > 0) {
let versionNum = metadata.mods[0].version;

// ${file.jarVersion} -> Implementation-Version from manifest
const manifestFile = zip.file("META-INF/MANIFEST.MF");
if (
// eslint-disable-next-line no-template-curly-in-string
metadata.mods[0].version.includes("${file.jarVersion}") &&
manifestFile !== null
) {
const manifestText = await manifestFile.async("text");
const regex = /Implementation-Version: (.*)$/m;
const match = manifestText.match(regex);
if (match) {
// eslint-disable-next-line no-template-curly-in-string
versionNum = versionNum.replace("${file.jarVersion}", match[1]);
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/helpers/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const createDataPackVersion = async function (
primaryZipReader.file("quilt.mod.json", JSON.stringify(quiltModJson));
}
if (loaders.includes("forge")) {
primaryZipReader.file("META-INF/mods.toml", TOML.stringify(forgeModsToml, { newline: "\n" })); // eslint-disable-line import/no-named-as-default-member
primaryZipReader.file("META-INF/mods.toml", TOML.stringify(forgeModsToml, { newline: "\n" }));
}

if (!newForge && loaders.includes("forge")) {
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/types/vintl.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "@vintl/vintl";
import { CompactNumber } from "@vintl/compact-number/dist/index.mjs";
import type { CompactNumber } from "@vintl/compact-number/dist/index.mjs";

declare global {
namespace VueIntlController {
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/utils/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ref, watch, computed } from "vue";
// note: build step can miss unix import for some reason, so
// we have to import it like this

const { unix } = dayjs; // eslint-disable-line import/no-named-as-default-member
const { unix } = dayjs;

export function useCountryNames(style = "long") {
const formattingOptions = { type: "region", style };
Expand Down

0 comments on commit ca03e38

Please sign in to comment.