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

Allow dynamic import for Node.js >=12.17 <13 || >=13.2 #13

Merged
merged 1 commit into from Mar 24, 2022

Conversation

nazrhyn
Copy link

@nazrhyn nazrhyn commented Mar 23, 2022

(This PR was moved from mysticatea#256 as that repository is currently unmaintained.)

Summary

This attempts to resolve mysticatea#250 by specifying the supported version for dynamic imports. Check the original PR for discussions I opened on the code around some of my changes.

Changes

  • Extend case.supported to support explicit Range instances
  • Update error string for no-dynamic-import
  • Update tests to check around those constraints

* Extend case.supported to support explicit Range instances
* Update error string
* Update tests to check around those constraints
@nazrhyn
Copy link
Author

nazrhyn commented Mar 23, 2022

Hello at the new location! Surprisingly no rebase conflicts on the new work here 🎉. All unit tests passed locally.

Copy link

@aladdin-add aladdin-add left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for doing this! 👍

@aladdin-add aladdin-add merged commit caccbef into eslint-community:master Mar 24, 2022
@aladdin-add
Copy link

released in v15.1.0

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

Successfully merging this pull request may close these issues.

'import()' expressions are not supported yet on Node engine >=14.5.0
2 participants