Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eslint-config-prettier v10.x not supported #30145

Open
1 of 4 tasks
techfg opened this issue Feb 24, 2025 · 0 comments
Open
1 of 4 tasks

eslint-config-prettier v10.x not supported #30145

techfg opened this issue Feb 24, 2025 · 0 comments
Assignees
Labels
scope: linter Issues related to Eslint support in Nx type: bug

Comments

@techfg
Copy link

techfg commented Feb 24, 2025

Current Behavior

"eslint-config-prettier": "^9.0.0"
restricts the use of eslint-config-prettier to ^9.0.0 only.

Expected Behavior

eslint-config-prettier v10.x has been out since 20250113 and should be able to be used without requiring --legacy-peer-deps to avoid warnings.

GitHub Repo

https://github.com/techfg/nx-eslint-config-prettier-repro

Steps to Reproduce

  1. git clone https://github.com/techfg/nx-eslint-config-prettier-repro.git
  2. npm i -D eslint-config-prettier@latest

Nx Report

Node           : 22.13.1
OS             : linux-x64
Native Target  : x86_64-linux
npm            : 10.9.2

nx                 : 20.4.6
@nx/js             : 20.4.6
@nx/eslint         : 20.4.6
@nx/workspace      : 20.4.6
@nx/devkit         : 20.4.6
@nx/eslint-plugin  : 20.4.6
typescript         : 5.7.3
---------------------------------------
Registered Plugins:
@nx/js/typescript
@nx/eslint/plugin

Failure Logs

npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @nx-eslint-config-prettier-repro/[email protected]
npm warn Found: [email protected]
npm warn node_modules/eslint-config-prettier
npm warn   dev eslint-config-prettier@"10.0.1" from the root project
npm warn
npm warn Could not resolve dependency:
npm warn peerOptional eslint-config-prettier@"^9.0.0" from @nx/[email protected]
npm warn node_modules/@nx/eslint-plugin
npm warn   dev @nx/eslint-plugin@"20.4.6" from the root project

up to date, audited 450 packages in 989ms

78 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@FrozenPandaz FrozenPandaz added the scope: linter Issues related to Eslint support in Nx label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: linter Issues related to Eslint support in Nx type: bug
Projects
None yet
Development

No branches or pull requests

3 participants