import path from 'node:path'; import { fileURLToPath } from 'node:url'; import { FlatCompat } from '@eslint/eslintrc'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const compat = new FlatCompat({ baseDirectory: __dirname }); const eslintConfig = [ ...compat.extends('next/core-web-vitals', 'next/typescript'), { ignores: [ 'nul', '.next/**', '.agents/**', 'skills/**', 'reference/**', 'next-env.d.ts', ], }, { files: ['**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}'], rules: { 'react-hooks/set-state-in-effect': 'off', 'prefer-const': 'off', '@typescript-eslint/no-empty-object-type': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/ban-ts-comment': 'off', }, }, ]; export default eslintConfig;