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

Conflicts with eslint-plugin-import #509

Open
alexcroox opened this issue Oct 7, 2024 · 0 comments
Open

Conflicts with eslint-plugin-import #509

alexcroox opened this issue Oct 7, 2024 · 0 comments

Comments

@alexcroox
Copy link

alexcroox commented Oct 7, 2024

Environment



Package

None

Reproduction

import importPlugin from 'eslint-plugin-import'
import withNuxt from './.nuxt/eslint.config.mjs'

export default withNuxt({
  importPlugin.flatConfigs.recommended,
})

Describe the bug

I'm trying to use eslint-plugin-import (https://github.com/import-js/eslint-plugin-import) and I get the error:

Error: ESLintFlatConfigUtils: Different instances of plugin "import" found in multiple configs:
nuxt/import/rules, import/recommended.

This is because import plugin is already used here (totally undocumented btw) https://github.com/nuxt/eslint/blob/main/packages/eslint-config/src/flat/configs/import.ts

I'd rather use the eslint-plugin-import plugin because:

Can I suggest we switch to eslint-plugin-import which is maintained?

Additional context

No response

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant