Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add
prefer-import-meta-properties
rule #2607New 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
Add
prefer-import-meta-properties
rule #2607Changes from 9 commits
c2a6c45
0bc4a01
7107b20
9e1bff8
fd842aa
93c7dac
e098150
d54ee2a
e82b019
948e222
c510e0c
d7d508c
859a275
c600810
bfdbd2d
c4dba43
d21168a
f611d8a
5df79f1
5852350
a7293cd
e9f4a57
5847068
d490f06
2908767
0bb4574
b6a0b54
3ccba73
f97138d
7816928
c3bcf1c
e953258
a2f4442
259c6f8
f9b359f
f790666
50f05e8
701d27d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should
import.meta
already ensure these files are in ESM? Why this check needed?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we give the community some time to drop Node.js 18, and add an option instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, you're right, no need to check for mjs 😓
It's definitely an ESM because it already uses
import.meta
.I'll change that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With Node v18 reaching EOL next month, I'm not sure if it should be an option 😅
#2255 (comment)