1.2.0 • Published 4 years ago

@amatlash/vite-plugin-stylelint v1.2.0

Weekly downloads
16
License
MIT
Repository
github
Last release
4 years ago

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

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago