Why & Why not?
Why
This plugin runs Stylelint inside Vite. The project started as a fork of gxmari007/vite-plugin-eslint, so Stylelint could run in the same place as the build.
vite-plugin-checker covers similar ground. Pick the one that fits your setup.
Stylelint only checks styles. To run ESLint in Vite with the same setup, use vite-plugin-eslint2.
Why not
Most projects do not need this plugin.
Your editor already shows the same problems. VS Code needs the Stylelint extension. WebStorm ships the feature.
You can also run Stylelint from the CLI or in CI.
Webpack projects use stylelint-webpack-plugin for the same job.
Turn the plugin on when you want errors and warnings while Vite runs. Set lintInWorker so the checks stay off the build thread. Results print to the console.
Acknowledge
Initially forked from gxmari007/vite-plugin-eslint.
Contributors
This project was created by ModyQyW.
Thanks to all contributors for their contributions!
Sponsors
If this package is helpful to you, please consider sponsoring. It keeps the project developed and maintained.