Skip to content

Conversation

@EricGrill
Copy link

Summary

Migrate from ESLint v8.56 to v9.39 using the new flat config format as requested in #2308.

Changes:

  • Replace .eslintrc.cjs files with eslint.config.mjs (flat config format)
  • Remove .eslintignore (ignores now defined in flat config)
  • Update ESLint and related packages to v9-compatible versions
  • Add @eslint/js, globals, and typescript-eslint packages
  • Update lint scripts to work without --ext flag (handled by flat config)
  • Remove unused eslint-disable directives that are no longer needed
  • Replace unused catch(error) bindings with catch {} syntax

Configuration preserves original behavior:

  • TypeScript ESLint uses eslintRecommended (matches plugin:@typescript-eslint/eslint-recommended)
  • react-refresh/only-export-components only applies to shared-front (as before)
  • testing-library rules only apply to test files
  • Import resolution settings match original config
  • Monorepo package directory settings preserved for each workspace

Test plan

  • All FE builds pass (pnpm -C front build)
  • All FE tests pass (pnpm test -- --run)
  • Linting passes with zero errors and zero warnings (pnpm lint:all)
  • lint-staged hooks work correctly

References


Generated with Claude Code

Migrate from ESLint v8.56 to v9.39 using the new flat config format.

Changes:
- Replace .eslintrc.cjs files with eslint.config.mjs (flat config)
- Remove .eslintignore (ignores now in flat config)
- Update ESLint and related packages to v9-compatible versions
- Add @eslint/js, globals, and typescript-eslint packages
- Update lint scripts to work without --ext flag
- Remove unused eslint-disable directives that are no longer needed
- Replace unused catch(error) bindings with catch {} syntax

The configuration preserves the original linting behavior:
- TypeScript ESLint uses eslintRecommended (not strict recommended)
- react-refresh/only-export-components only applies to shared-front
- testing-library rules only apply to test files
- Import resolution settings match original config

All FE builds pass and tests pass.

Closes boxwise#2308

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@pylipp pylipp requested a review from MomoRazor January 22, 2026 16:43
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.

Update eslint to v9

1 participant