-
-
Notifications
You must be signed in to change notification settings - Fork 18
Conversation
Hi @brettz9!, thanks for the Pull Request The first commit message isn't properly formatted. We ask that you update the message to match this format, as we use it to generate changelogs and automate releases.
Read more about contributing to ESLint here |
If I can get feedback about whether I'm on the right track with this, I may be able to also look at eslint/eslint-scope#70 and eslint/eslintrc#35 . |
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.
This LGTM. I’d like another set of eyes on it before merging.
Thanks for doing this!
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.
LGTM, thanks!
We already have one ESM project: https://github.com/eslint/espree. Ideally, all repositories should be aligned with espree repo in that regard. |
Co-authored-by: Milos Djermanovic <[email protected]>
@mdjermanovic : Do the issues you mentioned comprise the alignment changes you still feel or needed, or were there any other dimensions where you wanted alignment? I've submitted some of the other changes I aaw. Note that I didn't align with nyc because that is broken with ESM, and I didn't align the rollup script in JSON to specify Btw, you are using |
Btw, per my alignment with espree, I didn't see much mention of the array you used with |
Thanks for the changes! I'll check everything again and let you know if there is anything left.
That's great, coverage is currently broken in the espree repo.
👍 that's fine
Espree had an additional complexity with
That was discussed in the RFC. It's for compatibility with some Node versions, though I'm not sure if we need that anymore after #23. |
Ok, cool. As far as the fallback array, since it seems less documented and more verbose, maybe it is better to avoid it if the version support mentioned in eslint/rfcs#72 (comment) are accurate. Let me know if you want to keep it or revert (and just add the "default" key). |
Regarding prepare vs prepublishOnly: in general we want to use prepare everywhere. Espree had a special case where that wouldn’t work. |
Linting fails due to missing plugins required by the new |
It might be more suitable to do this freezing in eslint-visitor-keys/lib/index.js Lines 12 to 16 in 7279e73
|
Co-authored-by: Milos Djermanovic <[email protected]>
Done. |
Co-authored-by: Milos Djermanovic <[email protected]>
Co-authored-by: Milos Djermanovic <[email protected]>
Co-authored-by: Milos Djermanovic <[email protected]>
Does |
Co-authored-by: Milos Djermanovic <[email protected]>
Looks like it is this reported bug: bcoe/c8#184 . It had been working earlier. (Logging shows that there is a "branchMap" expected but it only has keys 0-6, not key 7 as supplied to it from "b" as obtained from "branches".) |
Hm, it works when I remove |
Added a commit to split the tests |
It works now, thanks! |
Regarding the Likewise with |
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.
LGTM, thanks!
Fixes #22.
Also:
Object.prototype.hasOwnProperty
call as per latest linting requirements.eslintrc.json
to pass linting of modules; uses ES2021 to supportimport.meta.url
.editorconfig
Using synchronous fs API since top-level await not yet supported (nor is ESM importing of JSON well-supported).
(I'm not sure why in my IDE, Atom, I'm seeing
node/no-unsupported-features/es-syntax
errors but in thelint
script I am not.)