0

I have a eslint config which extends some others. Those packages depend on "@typescript/eslint-plugin" but they use different versions.

  extends: ['airbnb', 'airbnb-typescript', '@some-private-eslint-cfg'],

This results in Eslint being unable to start. It complains about ambiguity, it cannot determine which version to use.

The error:

Oops! Something went wrong! :(

ESLint: 8.19.0

ESLint couldn't determine the plugin "@typescript-eslint" uniquely.

Please remove the "plugins" setting from either config or remove either plugin installation.

However, since I can't edit the configs of those packages I'm extending, I can't remove it from plugins[] and I can't uninstall it.

How to solve this? Ideally, I would like to add something to my top level .eslintrc to handle this. Is this possible?

user2297996
  • 1,382
  • 3
  • 18
  • 28
  • you can see this as reference as well - https://eslint-kit.gitbook.io/eslint-kit/common-issues short answer is that you will need to remove one of the plugins. In my case, `@typescript-eslint/eslint-plugin` was conflicting with `eslint-config-react-app`, so I removed the first one to fix it. – Dejan Toteff Nov 14 '22 at 13:53

0 Answers0