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

Latest release is broken with eslint 8 #297

Closed
heath-freenome opened this issue Feb 10, 2025 · 1 comment
Closed

Latest release is broken with eslint 8 #297

heath-freenome opened this issue Feb 10, 2025 · 1 comment

Comments

@heath-freenome
Copy link

Issue

I am trying to upgrade my company's custom eslint config library from 9.1.0 to 10.0.1. Since we depend on air-bnb rules we are stuck using eslint v8. According to the package.json for eslint-config-prettier, it supports eslint 7, 8 and 9. When we attempt to upgrade, we see the following error running the linter:

npm run lint

> eslint-config-test@0.0.0-auto-updated lint
> ./node_modules/.bin/eslint --ext ts,tsx src/


Oops! Something went wrong! :(

ESLint: 8.57.1

ESLint couldn't find the config "prettier/prettier" to extend from. Please check that the name of the config is correct.

The config "prettier/prettier" was referenced from the config file in "/Users/heath.chiavettone/dev/public/eslint-config-test/package.json".

If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.

I am uploading a very simplified version of my library that demonstrates the problem.

Steps to Reproduce:

  1. Unzip the file into a directory
  2. Run npm install && npm run lint
  3. You'll see things work fine.
  4. Update eslint-config-prettier to 10.0.1
  5. Run npm install && npm run lint
  6. You'll see the error

Reproducible test case

eslint-config-prettier-bug.tgz

@JounQin
Copy link
Member

JounQin commented Mar 7, 2025

Please provide online reproduction instead. Codesandbox, StackBlitz, GitHub repository for example.

By the way, extends: 'prettier', not prettier/prettier.

@JounQin JounQin closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2025
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

No branches or pull requests

2 participants