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

The import-index rule is marked as deprecated but seems to have been removed #2585

Open
warpdesign opened this issue Mar 3, 2025 · 2 comments · May be fixed by #2586
Open

The import-index rule is marked as deprecated but seems to have been removed #2585

warpdesign opened this issue Mar 3, 2025 · 2 comments · May be fixed by #2586
Labels

Comments

@warpdesign
Copy link

The import-index is marked as deprecated in the documentation but it seems it has been removed in version 57.0.0:

This rule is outdated. JavaScript modules (ESM) do not support importing a directory.

Attempting to use it will produce an error:

rules: {
  "unicorn/import-index": "error"
}
@warpdesign warpdesign added the bug label Mar 3, 2025
@github-actions github-actions bot changed the title the import-index rule is marked as deprecated but seems to have been removed The import-index rule is marked as deprecated but seems to have been removed Mar 3, 2025
@warpdesign warpdesign linked a pull request Mar 3, 2025 that will close this issue
@fisker
Copy link
Collaborator

fisker commented Mar 3, 2025

Just curious how should we handle these rules.

Actually all rules except no-instanceof-array in this page are all removed in v57, and import-index already deprecated for 3 years, did you noticed the deprecate information in the past?

For the docs, maybe we add should split into ## Deprecate and ## Removed sections, WDYT?

@warpdesign
Copy link
Author

warpdesign commented Mar 3, 2025 via email

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

Successfully merging a pull request may close this issue.

2 participants