Skip to content

refactor(deps): migrate eslint from 9.19.0 to 10.0.2#1634

Open
digital-wizard48 wants to merge 1 commit intomongodb:masterfrom
digital-wizard48:deps/upgrade-eslint-10.0.2
Open

refactor(deps): migrate eslint from 9.19.0 to 10.0.2#1634
digital-wizard48 wants to merge 1 commit intomongodb:masterfrom
digital-wizard48:deps/upgrade-eslint-10.0.2

Conversation

@digital-wizard48
Copy link

Changes

Dependency version bump

  • Updated eslint from 9.19.0 to 10.0.2 in package.json
  • Updated @eslint/js specifier from ^9 to ^10 in package.json
  • Updated lockfile references in pnpm-lock.yaml

Breaking change: removal of eslint:recommended string config

ESLint 10 removes the eslint:recommended built-in string config that was previously resolvable via FlatCompat.extends(). The correct migration is to use js.configs.recommended from @eslint/js directly as a flat config object.

In eslint.config.mjs:

  • Removed FlatCompat import and instantiation (no longer needed for eslint:recommended)
  • Removed path, fileURLToPath imports used only by FlatCompat setup
  • Replaced ...compat.extends("eslint:recommended") with js.configs.recommended spread directly in the config array

This is the idiomatic ESLint flat config pattern that was already the recommended approach in ESLint 9 and is now required in ESLint 10.

Note

The pnpm-lock.yaml version specifiers have been updated; a full pnpm install will be required to regenerate the complete lockfile with resolved package hashes for ESLint 10.0.2 and its updated dependency tree.


This PR was auto-generated by Gittensor upgrade bot using Claude AI

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