Skip to content

Fix ESLint 10 compatibility by migrating to pure flat config#134

Merged
davidmfinol merged 2 commits intodependabot/npm_and_yarn/eslint-10.0.0from
copilot/sub-pr-133
Feb 10, 2026
Merged

Fix ESLint 10 compatibility by migrating to pure flat config#134
davidmfinol merged 2 commits intodependabot/npm_and_yarn/eslint-10.0.0from
copilot/sub-pr-133

Conversation

Copy link
Contributor

Copilot AI commented Feb 10, 2026

ESLint 10 removed @eslint/eslintrc and FlatCompat, breaking the existing configuration that relied on these compatibility shims.

Changes

  • Removed deprecated compatibility layer: Eliminated FlatCompat and @eslint/eslintrc imports
  • Migrated to native flat configs:
    • typescriptEslint.configs['flat/recommended'] instead of compat.extends()
    • jest.configs['flat/recommended'] for Jest plugin
    • Direct import of eslint-config-prettier
  • Added globals dependency: Required for defining language globals in flat config

Before/After

// Before: Using deprecated FlatCompat
const compat = new FlatCompat({ baseDirectory: __dirname })
export default [
  ...compat.extends(
    'plugin:@typescript-eslint/recommended',
    'plugin:jest/recommended'
  ),
  // ...
]

// After: Pure flat config
export default [
  ...typescriptEslint.configs['flat/recommended'],
  jest.configs['flat/recommended'],
  prettierConfig,
  // ...
]

Note: Installed with --legacy-peer-deps as TypeScript ESLint v8.55.0 supports ESLint 10 but peer dependency metadata hasn't been updated yet.


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

Co-authored-by: davidmfinol <1088474+davidmfinol@users.noreply.github.com>
Copilot AI changed the title [WIP] Update eslint from version 9.39.2 to 10.0.0 Fix ESLint 10 compatibility by migrating to pure flat config Feb 10, 2026
Copilot AI requested a review from davidmfinol February 10, 2026 01:35
@davidmfinol davidmfinol marked this pull request as ready for review February 10, 2026 01:57
@davidmfinol davidmfinol merged commit 6b0dcfe into dependabot/npm_and_yarn/eslint-10.0.0 Feb 10, 2026
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