Skip to content

Commit 61b4957

Browse files
authored
feat: support stylelint v16 with vite-plugin-stylelint v5 (#109)
* fix(module): module name typo * feat: support Stylelint v16 with Vite plugin * chore(test): increase expected length for vite:extendConfig hook * chore: update readme for version note
1 parent 8924a55 commit 61b4957

File tree

5 files changed

+3499
-2064
lines changed

5 files changed

+3499
-2064
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Or, with `npm`
3939
npm install -D stylelint
4040
```
4141

42+
**Note:** Currently, this module is compatible with the latest version 16 of `stylelint` only when using vite, support for webpack is not yet implemented (see https://github.com/webpack-contrib/stylelint-webpack-plugin/issues/342).
43+
4244
## Setup
4345

4446
1. Add `@nuxtjs/stylelint-module` dependency to your project
@@ -135,6 +137,13 @@ Specify the formatter that you would like to use to format your results.
135137

136138
Check all matching files on project startup, too slow, turn on discreetly.
137139

140+
### `lintDirtyOnly`
141+
142+
- Type: `Boolean`
143+
- Default: `true`
144+
145+
Lint changed files only when running Stylelint except from buildStart hook, all specified files from `include` option will be linted when disabled.
146+
138147
### `emitWarning`
139148

140149
- Type: `Boolean`

0 commit comments

Comments
 (0)