Skip to content

Conversation

Copy link

Copilot AI commented Dec 15, 2025

Migrates from ESLint 8 to ESLint 9, adopting the new flat config format required by the v9 migration path.

Changes

Core upgrades:

  • eslint: 8.46.0 → 9.39.2
  • eslint-plugin-jest: 27.2.3 → 28.14.0
  • eslint-plugin-import: 2.30.0 → 2.32.0
  • Added: @eslint/js, typescript-eslint, globals

Configuration:

  • Migrated .eslintrc.jseslint.config.js (flat config format)
  • Removed eslint-config-standard and related plugins (no ESLint 9 support)
  • Maintained all existing rules, TypeScript configs, and Jest test file patterns
  • Moved reportUnusedDisableDirectives to linterOptions

Dependabot:

  • Removed eslint* from ignore list

Config structure

// Old: .eslintrc.js (extends, plugins as strings)
module.exports = {
  extends: ['standard', 'prettier'],
  plugins: ['import', 'jest'],
  overrides: [{ files: ['*.ts'], parser: '@typescript-eslint/parser' }]
}

// New: eslint.config.js (flat array of configs)
module.exports = [
  { files: ['**/*.js'], plugins: { import, jest }, rules: {...} },
  ...tseslint.config(...tseslint.configs.recommended),
  { files: ['**/*.ts'], plugins: { '@typescript-eslint': tseslint.plugin } }
]
Original prompt

This section details on the original issue you should resolve

<issue_title>Upgrade to eslint9</issue_title>
<issue_description>### What

It's a bigger change with the new config file https://eslint.org/docs/latest/use/migrate-to-9.0.0 so worth its own ticket to plan work on.

[!NOTE]
Please remember to remove the relevant packages from Dependabot's ignore list once upgraded.

Definition of Done

  • Has been deployed to production
    </issue_description>

Comments on the Issue (you are @copilot in this section)


✨ 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: rcantin-w <110461050+rcantin-w@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade to eslint 9 with new config file Upgrade to ESLint 9 with flat config format Dec 15, 2025
Copilot AI requested a review from rcantin-w December 15, 2025 11:46
@rcantin-w rcantin-w marked this pull request as ready for review December 15, 2025 11:58
@rcantin-w rcantin-w requested a review from a team as a code owner December 15, 2025 11:58
@rcantin-w rcantin-w removed their request for review December 15, 2025 12:01
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