Skip to content

Commit f6fcaa8

Browse files
chore(deps): update dependency stylelint to v17 (#712)
* chore(deps): update dependency stylelint to v17 * test: update test expectations for new version --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Roe <daniel@roe.dev>
1 parent 550b636 commit f6fcaa8

5 files changed

Lines changed: 193 additions & 216 deletions

File tree

packages/vite-plugin-checker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@types/proper-lockfile": "^4.1.4",
4646
"@vue/language-core": "~3.2.7",
4747
"meow": "^14.0.0",
48-
"stylelint": "^16.26.1",
48+
"stylelint": "^17.0.0",
4949
"tsup": "^8.5.1",
5050
"typescript": "^5.9.3",
5151
"vue-tsc": "~3.2.7"

playground/stylelint-default/__tests__/__snapshots__/test.spec.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`stylelint > serve > get initial error and subsequent error 1`] = `"[{"checkerId":"Stylelint","frame":" > 1 | #root {/n | ^/n > 2 | }/n | ^^/n 3 |/n 4 | body {/n 5 | color: rgb(0, 0, 0);","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":7,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":1},"message":"Unexpected empty block (block-no-empty) (block-no-empty)","stack":""},{"checkerId":"Stylelint","frame":" 3 |/n 4 | body {/n > 5 | color: rgb(0, 0, 0);/n | ^^^^^^^^^^^^/n 6 | }/n 7 |","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":10,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":5},"message":"Expected modern color-function notation (color-function-notation) (color-function-notation)","stack":""}]"`;
3+
exports[`stylelint > serve > get initial error and subsequent error 1`] = `"[{"checkerId":"Stylelint","frame":" > 1 | #root {/n | ^/n > 2 | }/n | ^^/n 3 |/n 4 | body {/n 5 | color: rgb(0, 0, 0);","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":7,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":1},"message":"Empty block (block-no-empty) (block-no-empty)","stack":""},{"checkerId":"Stylelint","frame":" 3 |/n 4 | body {/n > 5 | color: rgb(0, 0, 0);/n | ^^^^^^^^^^^^/n 6 | }/n 7 |","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":10,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":5},"message":"Expected modern color-function notation (color-function-notation) (color-function-notation)","stack":""}]"`;
44

55
exports[`stylelint > serve > get initial error and subsequent error 2`] = `
66
[
7-
" ERROR(Stylelint) Unexpected empty block (block-no-empty) (block-no-empty)
7+
" ERROR(Stylelint) Empty block (block-no-empty) (block-no-empty)
88
FILE <PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css:1:7
99
1010
> 1 | #root {
@@ -29,11 +29,11 @@ exports[`stylelint > serve > get initial error and subsequent error 2`] = `
2929
]
3030
`;
3131
32-
exports[`stylelint > serve > get initial error and subsequent error 3`] = `"[{"checkerId":"Stylelint","frame":" > 1 | #root {/n | ^/n > 2 | }/n | ^^/n 3 |/n 4 | body {/n 5 | color: rgb(0, 0, 0);","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":7,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":1},"message":"Unexpected empty block (block-no-empty) (block-no-empty)","stack":""},{"checkerId":"Stylelint","frame":" 3 |/n 4 | body {/n > 5 | color: rgb(0, 0, 0);/n | ^^^^^^^^^^^^/n 6 | }/n 7 |","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":10,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":5},"message":"Expected modern color-function notation (color-function-notation) (color-function-notation)","stack":""},{"checkerId":"Stylelint","frame":" > 1 | #root {/n | ^/n > 2 | }/n | ^^/n 3 |/n 4 | body {/n 5 | color: #fff;","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":7,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":1},"message":"Unexpected empty block (block-no-empty) (block-no-empty)","stack":""}]"`;
32+
exports[`stylelint > serve > get initial error and subsequent error 3`] = `"[{"checkerId":"Stylelint","frame":" > 1 | #root {/n | ^/n > 2 | }/n | ^^/n 3 |/n 4 | body {/n 5 | color: rgb(0, 0, 0);","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":7,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":1},"message":"Empty block (block-no-empty) (block-no-empty)","stack":""},{"checkerId":"Stylelint","frame":" 3 |/n 4 | body {/n > 5 | color: rgb(0, 0, 0);/n | ^^^^^^^^^^^^/n 6 | }/n 7 |","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":10,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":5},"message":"Expected modern color-function notation (color-function-notation) (color-function-notation)","stack":""},{"checkerId":"Stylelint","frame":" > 1 | #root {/n | ^/n > 2 | }/n | ^^/n 3 |/n 4 | body {/n 5 | color: #fff;","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":7,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":1},"message":"Empty block (block-no-empty) (block-no-empty)","stack":""}]"`;
3333
3434
exports[`stylelint > serve > get initial error and subsequent error 4`] = `
3535
[
36-
" ERROR(Stylelint) Unexpected empty block (block-no-empty) (block-no-empty)
36+
" ERROR(Stylelint) Empty block (block-no-empty) (block-no-empty)
3737
FILE <PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css:1:7
3838
3939
> 1 | #root {

playground/stylelint-default/__tests__/test.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('stylelint', () => {
3030
})
3131

3232
describe.runIf(isBuild)('build', () => {
33-
const expectedMsg = ['Unexpected empty block', 'Expected modern color-function notation']
33+
const expectedMsg = ['Empty block', 'Expected modern color-function notation']
3434

3535
it('should fail', async () => {
3636
expectStderrContains(log, expectedMsg)

playground/stylelint-default/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"devDependencies": {
1313
"meow": "^14.0.0",
14-
"stylelint": "^16.26.1",
14+
"stylelint": "^17.0.0",
1515
"stylelint-config-standard": "^40.0.0",
1616
"typescript": "^5.8.3",
1717
"vite": "^8.0.9",

0 commit comments

Comments
 (0)