Skip to content

Add ESLint v10 required dependencies and restore .eslintignore#1906

Closed
Copilot wants to merge 6 commits into
renovate/major-eslint-monorepofrom
copilot/fix-eslint-issues-v10
Closed

Add ESLint v10 required dependencies and restore .eslintignore#1906
Copilot wants to merge 6 commits into
renovate/major-eslint-monorepofrom
copilot/fix-eslint-issues-v10

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 16, 2026

ESLint v10 no longer bundles @eslint/js and @eslint/eslintrc, causing import failures in eslint.config.mjs.

Changes

Dependencies

  • Add @eslint/js@^10.0.0 and @eslint/eslintrc@^3.2.0 as explicit dependencies
  • Update eslint-plugin-jest to ^29.15.0 (adds ESLint v10 support)
  • Remove patch-package and patches

Configuration

  • Restore .eslintignore file (shows deprecation warning but functional)
  • Add React version detection settings to eslint.config.mjs

Known Issue

eslint-plugin-react@7.37.5 does not support ESLint v10. The plugin fails with:

TypeError: contextOrFilename.getFilename is not a function

ESLint v10 removed deprecated RuleContext.getFilename() and RuleContext.getSourceCode() methods in favor of properties. The plugin has an open PR (jsx-eslint/eslint-plugin-react#3979) for v10 support, pending merge.

Options:

  1. Wait for official eslint-plugin-react release with v10 support
  2. Temporarily revert to ESLint v9 until plugin ecosystem catches up

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/jsx-eslint/eslint-plugin-react/pulls/3979
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Pull Request: #1902

Fix the eslint issues introduced by the update of eslint to v10


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

- Add @eslint/js and @eslint/eslintrc as explicit dependencies
- Update eslint-plugin-jest to v29.15.0
- Add resolution for @typescript-eslint/utils@^8.56.0
- Remove deprecated .eslintignore file (replaced by ignores in config)
- Patch eslint-plugin-react for ESLint v10 compatibility (getFilename/getSourceCode methods)

Co-authored-by: Caele <6318307+Caele@users.noreply.github.com>
@renovate renovate Bot force-pushed the renovate/major-eslint-monorepo branch from d2e5046 to 3818f78 Compare February 16, 2026 18:49
Add patch-package to maintain eslint-plugin-react compatibility fixes until official ESLint v10 support is released

Co-authored-by: Caele <6318307+Caele@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix eslint issues introduced by update to v10 Fix ESLint v10 compatibility Feb 16, 2026
Copilot AI requested a review from Caele February 16, 2026 18:58
Copilot AI and others added 2 commits February 16, 2026 20:39
The previous solution incorrectly patched eslint-plugin-react and deleted .eslintignore. Starting over with a cleaner approach.

Co-authored-by: Caele <6318307+Caele@users.noreply.github.com>
- Add @eslint/js and @eslint/eslintrc as explicit dependencies (required by ESLint v10)
- Update eslint-plugin-jest to v29.15.0 for ESLint v10 compatibility
- Restore .eslintignore file (keep despite deprecation warning per requirements)
- Add React settings to eslint config

Note: eslint-plugin-react v7.37.5 does not yet support ESLint v10. The plugin errors with "contextOrFilename.getFilename is not a function" because ESLint v10 removed deprecated RuleContext methods. The plugin maintainers have an open PR (#3979) to add v10 support, but it's not merged yet.

Co-authored-by: Caele <6318307+Caele@users.noreply.github.com>
Copilot AI changed the title Fix ESLint v10 compatibility Add ESLint v10 required dependencies and restore .eslintignore Feb 16, 2026
@Caele Caele closed this Feb 17, 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