Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Irrelevant? - ESLINT considers import a keyword #22

Closed
Lonniebiz opened this issue May 1, 2020 · 1 comment
Closed

Irrelevant? - ESLINT considers import a keyword #22

Lonniebiz opened this issue May 1, 2020 · 1 comment

Comments

@Lonniebiz
Copy link

Lonniebiz commented May 1, 2020

Should import.meta be somethingElse.meta?

Look at the issue I'm having with ESLINT:
https://stackoverflow.com/questions/54337576/

And look at this discussion regarding the matter:
eslint/eslint#11514

To me, it seems like eslint shouldn't consider import. (notice the dot) the same thing as import. They won't address the matter until import.meta reaches stage 4.

I'm not posting here trying to get you to fix ESLINT. I'm posting here because I thought the issue might be relevant in some way to the import.meta project.

Could naming this object import be problematic to other things (beyond linters that won't yet support import.meta)?

There's import, import(), and import.meta. Maybe all that use of the word "import" for 3 separate things is just fine, but I'm reporting anyway, just in case it is something that should be taken into consideration. Thanks.

@Lonniebiz Lonniebiz changed the title ESLINT considers import a keyword ESLINT considers import a keyword - Irrelevant? May 1, 2020
@Lonniebiz Lonniebiz changed the title ESLINT considers import a keyword - Irrelevant? Irrelevant? - ESLINT considers import a keyword May 1, 2020
@MylesBorins
Copy link
Member

@Lonniebiz the proposal is stage 4 and there is an active issue tracking proper integration into eslint. Until that lands you can use the babel-eslint parser to get support

eslint/eslint#13133

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

No branches or pull requests

2 participants