fix(ci): fix eslint compatibility, downgrade to v8, and fix lint errors
Some checks failed
Build & Deploy / 🔍 Prepare Environment (push) Successful in 8s
Build & Deploy / 🏗️ Build (push) Failing after 12s
Build & Deploy / 🧪 QA (push) Successful in 1m13s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🔔 Notifications (push) Successful in 2s

This commit is contained in:
2026-02-05 11:15:41 +01:00
parent 31f931f7ce
commit 20cafce97d
10 changed files with 262 additions and 262 deletions

View File

@@ -42,6 +42,7 @@ async function setupBranding() {
navigationBackground: "#000c24",
navigationForeground: "#ffffff",
},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} as any),
);
console.log("✨ Branding applied!");
@@ -69,7 +70,7 @@ async function createCollectionAndFields() {
icon: "contact_mail",
display_template: "{{name}} <{{email}}>",
},
} as any),
}),
);
// Add ID field
@@ -82,15 +83,21 @@ async function createCollectionAndFields() {
}),
);
console.log(`✅ Collection ${collectionName} created.`);
} catch (e: any) {
console.log(` Collection ${collectionName} status: ${e.message}`);
} catch {
console.log(
` Collection ${collectionName} already exists or error occured.`,
);
}
const safeAddField = async (field: string, type: string, meta: any = {}) => {
const safeAddField = async (
field: string,
type: string,
meta: Record<string, unknown> = {},
) => {
try {
await client.request(createField(collectionName, { field, type, meta }));
console.log(`✅ Field ${field} added.`);
} catch (e: any) {
} catch {
// Ignore if exists
}
};

View File

@@ -3,6 +3,6 @@ import { validateMintelEnv } from "@mintel/next-utils";
try {
validateMintelEnv();
console.log("✅ Environment variables validated");
} catch (error) {
} catch {
process.exit(1);
}