overcommit icon indicating copy to clipboard operation
overcommit copied to clipboard

Support stylelint 16+, which emits messages on stderr

Open mattbrictson opened this issue 2 years ago • 0 comments

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

mattbrictson avatar Apr 12 '24 23:04 mattbrictson