Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

[import()] Adding support to lint dynamic imports #413

Merged
merged 2 commits into from
Oct 17, 2016

Conversation

kesne
Copy link
Contributor

@kesne kesne commented Oct 17, 2016

This adds the dynamicImport to the plugin list, which allows import() to be parsed.

@hzoo I'm working on getting a babel plugin to transpile these calls into something webpack 1 understands. Would be great to get linter support landed!

@hzoo
Copy link
Member

hzoo commented Oct 17, 2016

Do you want to add a simple test?

https://github.com/babel/babel-eslint/blob/master/test/non-regression.js#L1557

doesn't need rules but it shouldn't fail

@kesne
Copy link
Contributor Author

kesne commented Oct 17, 2016

Added a simple test to prevent regression.

@hzoo hzoo merged commit 41b9542 into babel:master Oct 17, 2016
@kesne kesne mentioned this pull request Oct 26, 2016
nicolo-ribaudo pushed a commit to babel/babel that referenced this pull request Nov 14, 2019
…#413)

* [import()] Adding support to lint dynamic imports

* [import()] Adding regression test to import
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants