eslint
This commit is contained in:
@@ -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(
|
||||
},
|
||||
},
|
||||
},
|
||||
);
|
||||
];
|
||||
|
Reference in New Issue
Block a user