Skip to content

rseeberg/vite-plugin-stylelint

 
 

Repository files navigation

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

About

Vite 2 plugin to lint CSS with stylelint

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%