From d7f380007fda3439ba47c03f2b89883df7ca723a Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Sat, 23 Aug 2025 14:37:08 +0200 Subject: [PATCH] eslint --- eslint.config.mjs | 16 ++++++++++++---- package.json | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 2853dbc..7db37e4 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -6,14 +6,22 @@ const compat = new FlatCompat({ baseDirectory: import.meta.dirname, }); -export default tseslint.config( +export default [ // Global ignores { - ignores: ['.next', '*.mjs', 'node_modules', 'tailwind.config.ts'], + ignores: [ + 'node_modules/**', + '.next/**', + 'out/**', + 'build/**', + 'next-env.d.ts', + '*.mjs', + 'tailwind.config.ts', + ], }, // 1. Next.js core rules (includes react, react-hooks, and next) - ...compat.extends('next/core-web-vitals', 'prettier'), + ...compat.extends('next/core-web-vitals', 'next/typescript', 'prettier'), // 2. Your strict, type-aware TypeScript rules ...tseslint.configs.strictTypeChecked, @@ -28,4 +36,4 @@ export default tseslint.config( }, }, }, -); +]; diff --git a/package.json b/package.json index 2e2ed8b..867f594 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "dev": "next dev --turbopack", "build": "next build", "start": "next start", - "lint": "next lint && npx tsc --noEmit" + "lint": "eslint . && npx tsc --noEmit" }, "dependencies": { "class-variance-authority": "^0.7.1",