Skip to content

Conversation

@mattbrictson
Copy link
Contributor

Before Stylelint 16, Stylelint emitted its messages on stdout. Hence Overcommit's Stylelint hook was built to read output from stdout.

Starting with Stylelint 16, Stylelint now emits its messages to stderr, which means the existing Overcommit implementation no longer works.

This PR updates Overcommit's Stylelint plugin to check for messages on both stdout and stderr. That way <16 and >=16 versions of Stylelint are supported.

Fixes #823

Before Stylelint 16, Stylelint emitted its messages on stdout. Hence
Overcommit's Stylelint hook was built to read output from stdout.

Starting with Stylelint 16, Stylelint now emits its messages to stderr,
which means the existing Overcommit implementation no longer works.

This PR updates Overcommit's Stylelint plugin to check for messages on
_both_ stdout and stderr. That way <16 and >=16 versions of Stylelint
are supported.

Fixes sds#823
@mattbrictson mattbrictson changed the title Support stylelint 16+, where messages are emitted on stderr Support stylelint 16+, which emits messages on stderr Apr 13, 2024
@sds sds merged commit 0e717f9 into sds:main May 12, 2024
@mattbrictson mattbrictson deleted the stylelint-16 branch July 18, 2024 14:28
@pilaf
Copy link
Contributor

pilaf commented Jul 18, 2024

Hi @sds, are there any plans to release a new version with this change included soon?

Thanks!

@sds
Copy link
Owner

sds commented Jul 22, 2024

Released in 0.64.0

@pilaf
Copy link
Contributor

pilaf commented Jul 23, 2024

@sds Awesome, thank you!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Overcommit doesn't work with Stylelint 16

3 participants