import js from '@eslint/js'; import nextPlugin from '@next/eslint-plugin-next'; import tseslint from 'typescript-eslint'; export default [ { ignores: ['.next/**', 'out/**', 'build/**', 'next-env.d.ts'], }, js.configs.recommended, ...tseslint.configs.recommended, { files: ['**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}'], plugins: { '@next/next': nextPlugin, }, rules: { ...nextPlugin.configs.recommended.rules, ...nextPlugin.configs['core-web-vitals'].rules, '@next/next/no-img-element': 'off', }, }, { files: ['tests/**/*.{ts,tsx}'], rules: { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-require-imports': 'off', }, }, ];