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

no-unresolved does not check dynamic import #2024

Closed
aladdin-add opened this issue Apr 6, 2021 · 1 comment · Fixed by #2026
Closed

no-unresolved does not check dynamic import #2024

aladdin-add opened this issue Apr 6, 2021 · 1 comment · Fixed by #2026

Comments

@aladdin-add
Copy link
Contributor

import("./component-xxx");

if the "./component-xxx" does not exists, the rule should report an error.

seems a reasonable enhencement?

@ljharb
Copy link
Member

ljharb commented Apr 6, 2021

Absolutely, for string literals or template literals without interpolations.

aladdin-add added a commit to aladdin-add/eslint-plugin-import that referenced this issue Apr 12, 2021
aladdin-add added a commit to aladdin-add/eslint-plugin-import that referenced this issue May 12, 2021
aladdin-add added a commit to aladdin-add/eslint-plugin-import that referenced this issue May 12, 2021
aladdin-add added a commit to aladdin-add/eslint-plugin-import that referenced this issue May 12, 2021
aladdin-add added a commit to aladdin-add/eslint-plugin-import that referenced this issue May 12, 2021
aladdin-add added a commit to aladdin-add/eslint-plugin-import that referenced this issue May 13, 2021
aladdin-add added a commit to aladdin-add/eslint-plugin-import that referenced this issue May 13, 2021
aladdin-add added a commit to aladdin-add/eslint-plugin-import that referenced this issue May 13, 2021
aladdin-add added a commit to aladdin-add/eslint-plugin-import that referenced this issue May 13, 2021
aladdin-add added a commit to aladdin-add/eslint-plugin-import that referenced this issue May 13, 2021
aladdin-add added a commit to aladdin-add/eslint-plugin-import that referenced this issue May 13, 2021
aladdin-add added a commit to aladdin-add/eslint-plugin-import that referenced this issue May 13, 2021
aladdin-add added a commit to aladdin-add/eslint-plugin-import that referenced this issue May 13, 2021
@ljharb ljharb closed this as completed in 96ed3c7 May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants