Open skrebergene opened 5 months ago
Could you provide an example repo @skrebergene? I tested it locally with the stylelint playground and everything works as expected.
Here you go @jhoermann: https://github.com/skrebergene/vite-plugin-checker-issue-demo
After some more digging it seems like the issue is related to the folder hierarchy. Checker runs stylelint validation, it just skips some files under certain circumstances.
It is worth noting that the bug is present for the most recent package versions as well (see the updated_packages
branch)
Is there a fix for this? Running into same issue.
Describe the bug
When building for production (
vite build
) errors from ESLint are shown, and causes the build to fail. Stylelint errors are not shown in the output, and does not cause the build to fail.Reproduction
I am using
vite-plugin-checker
with the following configuration invite.config.ts
:Here are som relevant npm versjons:
Expected behavior
I would expect that errors from both ESLint and Stylelint should cause
vite build
to fail. I would also expect errors to be shown in the build output for both ESLint and Stylelint.System Info
Additional context
Errors for both ESLint and Stylelint are shown in the output when running
vite
(dev mode), so the errors seem to propagate correctly to the plugin.Validations