testing-library / eslint-plugin-testing-library

ESLint plugin to follow best practices and anticipate common mistakes when writing tests with Testing Library
https://npm.im/eslint-plugin-testing-library
MIT License
989 stars 139 forks source link

Used version of @typescript-eslint/utils does not support ESLint v9 #946

Open fernion opened 1 week ago

fernion commented 1 week ago

Have you read the Troubleshooting section?

No

Plugin version

v6.4.0

ESLint version

v9.13.0

Node.js version

v20.11.1

package manager and version

yarn 4.0.2

Operating system

Ubuntu 24.04.1 LTS

Bug description

I could not find an issue for this "problem", so please close the issue if it is known already. So far things seem to work correctly except for the warning message.

The current version of @typescript-eslint/utils does not list ESLint v9 as a supported version. The result is a warning when running yarn install: eslint is listed by your project with version 9.13.0, which doesn't satisfy what eslint-plugin-testing-library (p7b6a7) and other dependencies request (^7.5.0 || ^8.0.0).

yarn explain peer-requirements p7b6a7


We have a problem with eslint, which is provided with version 9.13.0.
It is needed by the following direct dependencies of workspaces in your project:

✓ eslint-plugin-testing-library@npm:6.4.0 [5c80b] (via ^7.5.0 || ^8.0.0 || ^9.0.0)

However, those packages themselves have more dependencies listing eslint as peer dependency:

✘ @typescript-eslint/utils@npm:5.62.0 [149d9] (via ^6.0.0 || ^7.0.0 || ^8.0.0)



### Steps to reproduce

run yarn install

### Error output/screenshots

_No response_

### ESLint configuration

Not applicable

### Rule(s) affected

None

### Anything else?

_No response_

### Do you want to submit a pull request to fix this bug?

No
MichaelDeBoey commented 1 week ago

This will be fixed once #945 is merged

github-actions[bot] commented 20 hours ago

:tada: This issue has been resolved in version 7.0.0-beta.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: