Skip to content

Commit d3047a4

Browse files
authored
chore: fix CI error (#422)
1 parent b1ba1e5 commit d3047a4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"mocha": "^10.2.0",
9999
"mocha-chai-jest-snapshot": "^1.1.4",
100100
"nyc": "^15.1.0",
101-
"prettier": "^3.0.0",
101+
"prettier": "~3.1.0",
102102
"prettier-plugin-pkg": "^0.18.0",
103103
"prettier-plugin-svelte": "^3.0.0",
104104
"rimraf": "^5.0.1",

src/context/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ export class Context {
338338
element.type === "SvelteScriptElement"
339339
? "script"
340340
: element.type === "SvelteStyleElement"
341-
? "style"
342-
: (element.name as SvelteName).name.toLowerCase();
341+
? "style"
342+
: (element.name as SvelteName).name.toLowerCase();
343343
return this.blocks.find(
344344
(block) =>
345345
block.tag === tag &&
@@ -424,8 +424,8 @@ function* extractBlocks(code: string): IterableIterator<Block> {
424424
lowerTag === "script"
425425
? endScriptTagRe
426426
: lowerTag === "style"
427-
? endStyleTagRe
428-
: endTemplateTagRe;
427+
? endStyleTagRe
428+
: endTemplateTagRe;
429429
endTagRe.lastIndex = startTagEnd;
430430
const endTagMatch = endTagRe.exec(code);
431431
if (endTagMatch) {

tests/src/parser/parser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ function checkTokens(ast: SvelteProgram, input: string) {
106106
return token.type === "Block"
107107
? `/*${token.value}*/`
108108
: token.type === "Line"
109-
? `//${token.value}`
110-
: token.value;
109+
? `//${token.value}`
110+
: token.value;
111111
}
112112
}
113113

0 commit comments

Comments
 (0)