Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport for dynamic imports in body #1122
Comments
This comment has been minimized.
This comment has been minimized.
|
May I ask how your setup is? I thought that dynamic imports where made via a function call (e.g. |
This comment has been minimized.
This comment has been minimized.
|
That's the syntax we're using yes. |
This comment has been minimized.
This comment has been minimized.
|
@corvana-nbaker Are you referring to the |
This comment has been minimized.
This comment has been minimized.
|
Yes! How can I get "allowImportExportEverywhere" to take effect with standard? |
This comment has been minimized.
This comment has been minimized.
|
It appears that the I don't think this should be necessary if you're using the dynamic Using Also, this appears related to: #1041 |
corvana-nbaker commentedMay 2, 2018
We're leveraging dynamic imports and standard keeps complaining: "Parsing error: 'import' and 'export' may only appear at the top level"
Eslint supports suppressing this via the "allowImportExportEverywhere" parser option, but standard doesn't seem to read the .eslintrc file. /* eslint-disable /* doesn't work either.
Is anyone aware of a way to ignore this check?