Skip to content

chore: fix CI error #422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 14, 2023
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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"mocha": "^10.2.0",
"mocha-chai-jest-snapshot": "^1.1.4",
"nyc": "^15.1.0",
"prettier": "^3.0.0",
"prettier": "~3.1.0",
"prettier-plugin-pkg": "^0.18.0",
"prettier-plugin-svelte": "^3.0.0",
"rimraf": "^5.0.1",
Expand Down
8 changes: 4 additions & 4 deletions src/context/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ export class Context {
element.type === "SvelteScriptElement"
? "script"
: element.type === "SvelteStyleElement"
? "style"
: (element.name as SvelteName).name.toLowerCase();
? "style"
: (element.name as SvelteName).name.toLowerCase();
return this.blocks.find(
(block) =>
block.tag === tag &&
Expand Down Expand Up @@ -424,8 +424,8 @@ function* extractBlocks(code: string): IterableIterator<Block> {
lowerTag === "script"
? endScriptTagRe
: lowerTag === "style"
? endStyleTagRe
: endTemplateTagRe;
? endStyleTagRe
: endTemplateTagRe;
endTagRe.lastIndex = startTagEnd;
const endTagMatch = endTagRe.exec(code);
if (endTagMatch) {
Expand Down
4 changes: 2 additions & 2 deletions tests/src/parser/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ function checkTokens(ast: SvelteProgram, input: string) {
return token.type === "Block"
? `/*${token.value}*/`
: token.type === "Line"
? `//${token.value}`
: token.value;
? `//${token.value}`
: token.value;
}
}

Expand Down