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

core modules docs are misleading #2986

Open
jcollum-nutrien opened this issue Mar 18, 2024 · 1 comment
Open

core modules docs are misleading #2986

jcollum-nutrien opened this issue Mar 18, 2024 · 1 comment

Comments

@jcollum-nutrien
Copy link

related: #1390

https://github.com/import-js/eslint-plugin-import?tab=readme-ov-file#importcore-modules

The docs definitely imply that all you need for import/core-modules is a list of modules to import. But it should be

import/core-modules: [2,  electron ]

as far as I can tell.

@ljharb
Copy link
Member

ljharb commented Mar 18, 2024

It shouldn't be; that's how you configure rules, but this is a setting.

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

No branches or pull requests

2 participants