Artifact

// BEFORE — crashes ESLint 9 with eslint-config-next >= 16: import { FlatCompat } from '@eslint/eslintrc' const compat = new FlatCompat({ baseDirectory: __dirname }) export default [ { ignores: ['next-env.d.ts', '.next/**', 'node_modules/**'] }, ...compat.extends('next/core-web-vitals', 'next/typescript'), ] // AFTER — eslint-config-next 16 ships native flat configs; import directly: import nextCoreWebVitals from 'eslint-config-next/core-web-vitals' import nextTypescript from 'eslint-config-next/typescript' export default [ { ignores: ['next-env.d.ts', '.next/**', 'node_modules/**'] }, ...nextCoreWebVitals, ...nextTypescript, ]

d3ce1dea-9748-4faa-a162-06aee647236c

// BEFORE — crashes ESLint 9 with eslint-config-next >= 16: import { FlatCompat } from '@eslint/eslintrc' const compat = new FlatCompat({ baseDirectory: __dirname }) export default [ { ignores: ['next-env.d.ts', '.next/', 'node_modules/'] }, ...compat.extends('next/core-web-vitals', 'next/typescript'), ]

// AFTER — eslint-config-next 16 ships native flat configs; import directly: import nextCoreWebVitals from 'eslint-config-next/core-web-vitals' import nextTypescript from 'eslint-config-next/typescript' export default [ { ignores: ['next-env.d.ts', '.next/', 'node_modules/'] }, ...nextCoreWebVitals, ...nextTypescript, ]