This commit is contained in:
2025-08-23 14:37:08 +02:00
parent b4ddc3dbba
commit d7f380007f
2 changed files with 13 additions and 5 deletions

View File

@@ -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(
},
},
},
);
];

View File

@@ -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",