Getting Started
Overview
vite-plugin-stylelint
is a project providing Stylelint plugin for Vite. Supports Vite v2 ~ v5 and Stylelint v13 ~ v16. Requires node>=18
.
For Nuxt projects, please use @nuxtjs/stylelint-module.
You may also want Vite ESLint plugin.
Install
sh
npm install vite-plugin-stylelint -D
vite-plugin-stylelint
does not install and config Stylelint for you. You should handle these yourself.
Stylelint v16
sh
npm install stylelint@^16 -D
Stylelint v15
sh
npm install stylelint@^15 -D
Stylelint v14
sh
npm install stylelint@^14 -D
Stylelint v13
sh
npm install stylelint@^13 @types/stylelint@^13 -D
Usage
typescript
// vite.config.ts
import { defineConfig } from "vite";
import stylelint from "vite-plugin-stylelint";
export default defineConfig({
plugins: [stylelint()],
});
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, which will benefit the ongoing development and maintenance of the project.