Getting Started
Overview
vite-plugin-stylelint runs Stylelint inside Vite. It supports Vite v2 to v8 and Stylelint v13 to v18.
The plugin needs Node.js 18 or newer. Each Stylelint major has its own Node.js requirement. The table below lists them.
For Nuxt projects, use @nuxtjs/stylelint-module.
You may also want the Vite ESLint plugin.
Install
vite-plugin-stylelint does not install or configure Stylelint for you. Install the Stylelint major you want, and the configs it needs.
Stylelint 18 also needs configs that support it. stylelint-config-recommended@^19 is one.
Some community configs still require Stylelint 17. stylelint-config-recommended-scss is one of them.
Usage
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.