Skip to content

fix(deps): pin eslint to v9 (eslint-plugin-react incompat)#9

Merged
aanogueira merged 2 commits intomainfrom
andre.nogueira/fix-eslint-pin
May 3, 2026
Merged

fix(deps): pin eslint to v9 (eslint-plugin-react incompat)#9
aanogueira merged 2 commits intomainfrom
andre.nogueira/fix-eslint-pin

Conversation

@aanogueira
Copy link
Copy Markdown
Collaborator

Summary

ESLint v10 crashes the linter because the `eslint-plugin-react` bundled with `eslint-config-next` 16 still uses `context.getFilename()`, removed in ESLint 10:

```
TypeError: Error while loading rule 'react/display-name': contextOrFilename.getFilename is not a function
```

This PR:

  • Pins `eslint` to `^9.39.4` in `package.json` (already on main; this preserves it after recent Dependabot churn).
  • Tells Dependabot to ignore `eslint` major bumps until upstream ships v10 support.

Test plan

  • `npm install && npm run lint` exits clean on this branch.
  • Once `eslint-config-next` releases a v10-compatible plugin, remove the `ignore` block in `.github/dependabot.yml` to let Dependabot resume major bumps.

aanogueira added 2 commits May 3, 2026 19:22
eslint-config-next 16 bundles an eslint-plugin-react that still uses
context.getFilename(), removed in eslint v10. Bumping eslint to v10
crashes the linter (TypeError in 'react/display-name'). Pin eslint to
the v9 line and tell Dependabot to skip eslint major bumps until the
upstream plugin ships v10 support.

Signed-off-by: Andre Nogueira <aanogueira@protonmail.com>
Signed-off-by: Andre Nogueira <aanogueira@protonmail.com>
@aanogueira aanogueira merged commit c8e884e into main May 3, 2026
1 check passed
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.

1 participant