Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.13 KB

README.md

File metadata and controls

53 lines (34 loc) · 1.13 KB

vite-plugin-stylelint

npm (scoped)

Vite 2 plugin for stylelint that works with the dev server.

By default displays warnings and errors to the terminal`s console.

Install

npm install @amatlash/vite-plugin-stylelint --save-dev

Usage

import { defineConfig } from 'vite';
import viteStylelint from '@amatlash/vite-plugin-stylelint';

export default defineConfig({
  plugins: [viteStylelint()],
});

Configuration

Plugin can operate only with default .stylelintrc files.

Fast setup

Install standart config

npm install stylelint-config-standard --save-dev

Create .stylelintrc.js in your project's root

// .stylelintrc.js
module.exports = {
    extends: "stylelint-config-standard"
}

Advanced setup

For advanced config linting options check out the official stylelint docs.

License

MIT