wikimedia/grunt-stylelint

Use stylelint's built-in formatters

jeddy3 opened this issue · 2 comments

Hello. Thanks for making a start on grunt-stylelint. It's a missing piece of the stylelint eco-system!

It's looking great so far. I have one suggestion though. I think you'll want to use stylelint's built-in formatters. The default "string" formatter is quite powerful and, I believe, the main reason someone would want to use a dedicated stylelint grunt plugin, rather than use the existing grunt-postcss and postcss-reporter combo.

Perhaps have a look at how grunt-eslint passes along its options to eslint itself. You'll find stylelint's Node API options documented here.

Thanks again and please don't hesitate to ask if you've any questions about the stylelint Node API :)

Hey, thanks. This seems like it'd be a neat improvement, and would help. Note that a large part of our objective with this was to more neatly tie into grunt's formatting model, so I'll need to work out how to combine the best of both. :-)

This seems like it'd be a neat improvement, and would help

Good stuff :)

Note that a large part of our objective with this was to more neatly tie into grunt's formatting model

Perhaps bundle a custom formatter that adheres to grunt's formatting model with this plugin? And then make this custom formatter available alongside the built-in ones.