Commit 02d1e48
feat(stylelint-plugin): support stylelint v17 (#346)
* feat(stylelint-plugin): support stylelint v17
- Fix `utils.report()` index/endIndex to use node-relative offsets
instead of absolute file offsets, as required by stylelint v17's
stricter position argument handling (stylelint/stylelint#8217)
- Update devDependency to stylelint v17
- Add CI job to test with stylelint v16 for backward compatibility
- Add changeset
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: npm i
* ci: install stylelint@16 before setup-node-and-node-modules to avoid cache collision
`setup-node-and-node-modules` caches `node_modules` keyed by
`package-lock.json`. Installing stylelint@16 beforehand changes the
lock file so that the cache key differs from the stylelint@17 run,
preventing the wrong `node_modules` from being restored.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ci: run only stylelint-plugin tests in CI stylelint job
The stylelint job was using `npx vitest --run --project unit` which ran
all unit tests filtered by path, instead of `npm run test` which correctly
runs only the specified package's tests.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ci: remove vite/vitest cache from `test-stylelint-v16` job to avoid cache collision with `test` job
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: mizdra <pp.mizdra@gmail.com>1 parent 597e6ad commit 02d1e48
6 files changed
Lines changed: 417 additions & 131 deletions
File tree
- .changeset
- .github/workflows
- packages/stylelint-plugin
- src/rules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
54 | 66 | | |
55 | 67 | | |
56 | 68 | | |
| |||
0 commit comments