diff --git a/memento-note/app/api/integrations/calendar/route.ts b/memento-note/app/api/integrations/calendar/route.ts index a9330c0..f993c11 100644 --- a/memento-note/app/api/integrations/calendar/route.ts +++ b/memento-note/app/api/integrations/calendar/route.ts @@ -114,7 +114,7 @@ export async function GET(req: NextRequest) { // Fetch today's events if (events === '1') { - let tokens = await getStoredTokens(userId) + const tokens = await getStoredTokens(userId) if (!tokens) { return NextResponse.json({ error: 'Calendar not connected' }, { status: 400 }) } diff --git a/memento-note/eslint.config.mjs b/memento-note/eslint.config.mjs index daafdc5..d875907 100644 --- a/memento-note/eslint.config.mjs +++ b/memento-note/eslint.config.mjs @@ -60,14 +60,18 @@ const eslintConfig = defineConfig([ }, rules: { ...reactCompilerRules, + // Erreurs fatales (font échouer le CI) "react-hooks/rules-of-hooks": "error", + // Warnings seulement — ne font PAS échouer le CI + "react-hooks/exhaustive-deps": "warn", + "prefer-const": "warn", + // Désactivé — trop de faux positifs "@typescript-eslint/no-unused-vars": "off", "@typescript-eslint/no-explicit-any": "off", "react/no-unescaped-entities": "off", "@next/next/no-img-element": "off", "jsx-a11y/role-has-required-aria-props": "off", "@typescript-eslint/no-unused-expressions": "off", - "prefer-const": "error", }, }, ]); diff --git a/memento-note/prisma/schema.prisma b/memento-note/prisma/schema.prisma index f1de3e9..73753d9 100644 --- a/memento-note/prisma/schema.prisma +++ b/memento-note/prisma/schema.prisma @@ -1,6 +1,6 @@ generator client { provider = "prisma-client-js" - binaryTargets = ["debian-openssl-3.0.x", "native"] + binaryTargets = ["native", "debian-openssl-3.0.x", "linux-musl-openssl-3.0.x"] previewFeatures = ["postgresqlExtensions"] }