Skip to content
New 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

Fix no longer needed workaround for Cosmiconfig segfault #7329

Merged
merged 6 commits into from Nov 14, 2023
Merged

Conversation

ybiquitous
Copy link
Member

@ybiquitous ybiquitous commented Nov 13, 2023

Which issue, if any, is this issue related to?

Closes #7322

Is there anything in the PR that needs further explanation?

This workaround was introduced in #6902. See also #6898.

Note: This PR skips a few cases that failed due to segfault. See the source comment for details.

This workaround was introduced in #6902. See also #6898.
Copy link

changeset-bot bot commented Nov 13, 2023

🦋 Changeset detected

Latest commit: 634842b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
stylelint Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ybiquitous
Copy link
Member Author

Maybe related to nodejs/node#35889. The patch was released in Node.js 20.

Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Were you able to test this locally on node@18 outside of Jest?

@ybiquitous
Copy link
Member Author

Yes. scripts/visual-config.cjs is available within this repository. See the following:

$ node -v
v18.18.2

$ bin/stylelint.mjs --config scripts/visual-config.cjs scripts/*.css

scripts/visual.css
 1:1   ✖  Unknown rule unit-case                            unit-case
 1:1   ✖  Unknown rule string-quotes                        string-quotes
 1:9   ✖  Expected "url("foo.css")" to be ""foo.css""       import-notation
 4:9   ✖  Unexpected invalid hex color "#4f"                color-no-invalid-hex
 6:1   ✖  Expected ".foo.bar" to have no more than 1 class  selector-max-class
 7:10  ✖  Unexpected unit "px"                              unit-disallowed-list
 8:3   ⚠  Expected custom property name to be kebab-case    custom-property-pattern

7 problems (6 errors, 1 warning)

Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

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

Successfully merging this pull request may close these issues.

Fix ERR_REQUIRE_ESM when importing ESM config with .js
2 participants