sds / overcommit

A fully configurable and extendable Git hook manager
MIT License
3.91k stars 280 forks source link

Support stylelint 16+, which emits messages on stderr #848

Closed mattbrictson closed 4 months ago

mattbrictson commented 5 months ago

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

pilaf commented 1 month ago

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

Thanks!

sds commented 1 month ago

Released in 0.64.0

pilaf commented 1 month ago

@sds Awesome, thank you!