eslint
This commit is contained in:
@@ -6,14 +6,22 @@ const compat = new FlatCompat({
|
|||||||
baseDirectory: import.meta.dirname,
|
baseDirectory: import.meta.dirname,
|
||||||
});
|
});
|
||||||
|
|
||||||
export default tseslint.config(
|
export default [
|
||||||
// Global ignores
|
// 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)
|
// 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
|
// 2. Your strict, type-aware TypeScript rules
|
||||||
...tseslint.configs.strictTypeChecked,
|
...tseslint.configs.strictTypeChecked,
|
||||||
@@ -28,4 +36,4 @@ export default tseslint.config(
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
);
|
];
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
"dev": "next dev --turbopack",
|
"dev": "next dev --turbopack",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint && npx tsc --noEmit"
|
"lint": "eslint . && npx tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"class-variance-authority": "^0.7.1",
|
"class-variance-authority": "^0.7.1",
|
||||||
|
Reference in New Issue
Block a user