mirror of
https://github.com/tiennm99/exchange-rate-export.git
synced 2026-10-11 03:13:21 +00:00
- Downgrade eslint ^10 → ^9 (eslint-config-next@16 requires eslint >=9) - Rewrite eslint.config.mjs to use native flat config API (defineConfig + eslint-config-next/core-web-vitals direct import) instead of FlatCompat bridge which triggers a circular-structure JSON crash with eslint-config-next@16 - Remove @eslint/eslintrc devDep (no longer needed with native flat config)
10 lines
280 B
JavaScript
10 lines
280 B
JavaScript
import { defineConfig, globalIgnores } from "eslint/config";
|
|
import nextVitals from "eslint-config-next/core-web-vitals";
|
|
|
|
const eslintConfig = defineConfig([
|
|
...nextVitals,
|
|
globalIgnores([".next/**", "out/**", "build/**", "next-env.d.ts"]),
|
|
]);
|
|
|
|
export default eslintConfig;
|