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(
 | 
			
		||||
      },
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
);
 | 
			
		||||
];
 | 
			
		||||
 
 | 
			
		||||
@@ -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",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user