Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 12, 2025

eslint-config-next@16.0.10 requires ESLint 9, but the project was on ESLint 8, causing peer dependency conflicts during npm install.

Changes

  • Upgraded to ESLint 9 ecosystem:

    • eslint: ^8 → ^9
    • @typescript-eslint/eslint-plugin, @typescript-eslint/parser: ^7.2.0 → ^8.0.0
    • eslint-plugin-react-hooks: ^4.6.2 → ^5.0.0
  • Upgraded Next.js to match eslint-config-next version:

    • next: 14.2.4 → 16.0.10
  • Migrated to ESLint 9 flat config:

    • Replaced .eslintrc.yml with eslint.config.mjs
    • Updated lint script from next lint to eslint . (Next.js 16 removed the lint command)
  • Build configuration:

    • Added --webpack flag to build script (Next.js 16 defaults to Turbopack; project requires webpack for existing config)
    • Added ts-node dev dependency for Jest config
// eslint.config.mjs - new flat config format
import js from "@eslint/js";
import typescriptEslint from "typescript-eslint";

export default [
  js.configs.recommended,
  ...typescriptEslint.configs.recommended,
  // ...
];

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

… TypeScript ESLint plugins

Co-authored-by: peckz <18050177+peckz@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 12, 2025

Deploying jam-dev-utilities with  Cloudflare Pages  Cloudflare Pages

Latest commit: dd5f775
Status: ✅  Deploy successful!
Preview URL: https://c76a088c.jam-dev-utilities.pages.dev
Branch Preview URL: https://copilot-sub-pr-129.jam-dev-utilities.pages.dev

View logs

Co-authored-by: peckz <18050177+peckz@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 12, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Copilot AI changed the title [WIP] Update dependencies glob and eslint-config-next Fix ESLint 9 and Next.js 16 compatibility issues Dec 12, 2025
Copilot AI requested a review from peckz December 12, 2025 17:51
@peckz peckz closed this Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants