cascornelissen / stylelint-bare-webpack-plugin

Stylelint plugin for webpack
MIT License
13 stars 4 forks source link

Add support for stylelint v16 #19

Open paulfalgout opened 11 months ago

paulfalgout commented 11 months ago

In v16 the formatters were changed to Promises https://github.com/stylelint/stylelint/blob/main/docs/migration-guide/to-16.md#changed-nodejs-api-stylelintformatters-object

So the defaults no longer work.

cascornelissen commented 11 months ago

Thanks for reporting this. My initial reaction is that this should be a simple (hopefully backwards-compatible) change where we'd need some additional async/await keywords in the following part.

https://github.com/cascornelissen/stylelint-bare-webpack-plugin/blob/0bdd75b67a57c0dbd2a2906476bf818d69fdb913/lib/index.js#L28-L34

I'm open to a PR if anyone wants to try this out. As mentioned I'd love to support this in a backwards-compatible way so let's ensure it works with v16 but also with earlier versions so that we can maintain the current level of flexibility.