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 showing of incorrect missing package in customSyntax require handling #5763

Merged
merged 4 commits into from Dec 8, 2021

Conversation

dlaub3
Copy link
Contributor

@dlaub3 dlaub3 commented Dec 4, 2021

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

Closes #5761

Is there anything in the PR that needs further explanation?

I'm not sure if the added console.error is beneficial. What are your thoughts?

@dlaub3 dlaub3 changed the title fix customSyntax MODULE_NOT_FOUND error handling Fix showing of incorrect missing package in customSyntax require handling Dec 4, 2021
Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

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

@dlaub3 Thank you for creating this PR! I've suggested one idea for the usage of console.error().

lib/getPostcssResult.js Outdated Show resolved Hide resolved
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
lib/getPostcssResult.js Outdated Show resolved Hide resolved
remove console.error in favor of embedding the original error
@mattxwang
Copy link
Member

@dlaub3 looks like it fails the CI Lint, do you want to try running npm run format on your fork?

@dlaub3
Copy link
Contributor Author

dlaub3 commented Dec 7, 2021

@dlaub3 looks like it fails the CI Lint, do you want to try running npm run format on your fork?

This is the downside to applying changes via the GitHub UI. It should be good now.

Copy link
Member

@mattxwang mattxwang left a comment

Choose a reason for hiding this comment

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

I'll defer back to @ybiquitous for a final review if needed, but on my end this LGTM! Thanks for the contribution 😄

Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

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

@dlaub3 Thank you. LGTM 👍🏼

@ybiquitous ybiquitous merged commit f77a009 into stylelint:main Dec 8, 2021
ybiquitous added a commit that referenced this pull request Dec 8, 2021
@ybiquitous
Copy link
Member

ybiquitous commented Dec 8, 2021

  • Fixed: showing of incorrect missing package in customSyntax require handling (#5763).

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 showing of incorrect missing package in customSyntax require handling
3 participants