Skip to content

Latest release is broken with eslint 8 #297

@heath-freenome

Description

@heath-freenome

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions