Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/vite-plugin-checker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@types/proper-lockfile": "^4.1.4",
"@vue/language-core": "~3.2.7",
"meow": "^14.0.0",
"stylelint": "^16.26.1",
"stylelint": "^17.0.0",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"vue-tsc": "~3.2.7"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

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":""}]"`;
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":""}]"`;

exports[`stylelint > serve > get initial error and subsequent error 2`] = `
[
" ERROR(Stylelint) Unexpected empty block (block-no-empty) (block-no-empty)
" ERROR(Stylelint) Empty block (block-no-empty) (block-no-empty)
FILE <PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css:1:7

> 1 | #root {
Expand All @@ -29,11 +29,11 @@ exports[`stylelint > serve > get initial error and subsequent error 2`] = `
]
`;

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":""}]"`;
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":""}]"`;

exports[`stylelint > serve > get initial error and subsequent error 4`] = `
[
" ERROR(Stylelint) Unexpected empty block (block-no-empty) (block-no-empty)
" ERROR(Stylelint) Empty block (block-no-empty) (block-no-empty)
FILE <PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css:1:7

> 1 | #root {
Expand Down
2 changes: 1 addition & 1 deletion playground/stylelint-default/__tests__/test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('stylelint', () => {
})

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

it('should fail', async () => {
expectStderrContains(log, expectedMsg)
Expand Down
2 changes: 1 addition & 1 deletion playground/stylelint-default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"devDependencies": {
"meow": "^14.0.0",
"stylelint": "^16.26.1",
"stylelint": "^17.0.0",
"stylelint-config-standard": "^40.0.0",
"typescript": "^5.8.3",
"vite": "^8.0.9",
Expand Down
Loading
Loading