nuxt-modules / stylelint

Stylelint module for Nuxt.js
MIT License
65 stars 9 forks source link

Module's options "failOnWarning" and "failOnError" don't work #105

Closed buravlev-arthur closed 3 months ago

buravlev-arthur commented 7 months ago

Changing of failOnWarning and failOnError boolean options doesn't present any affect. Because of permanent default true state of the "failOnError" option build fails everytime when there is at least one stylelint's error.

I've noticed vite-plugin-stylelint doesn't have these options in its documentation. I guess it can be reason of this issue.

ricardogobbosouza commented 6 months ago

Hi @buravlev-arthur These options then exist when using @nuxt/webpack-builder https://nuxt.com/docs/api/nuxt-config#builder

buravlev-arthur commented 6 months ago

@ricardogobbosouza, firstly, thank you for your answer! Now I see. I would propose to text under appropriate options, something like: “Works only along with @nuxt/webpack-builder”. Furthermore, @nuxt/vite-builder is used as default in Nuxt configuration. What do you think?

ricardogobbosouza commented 6 months ago

Yes...need to update documentation