Skip to content

Commit

Permalink
chore: fix sveltekit demo, prettier fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberalien committed Dec 30, 2023
1 parent b1573e1 commit 29c70a6
Show file tree
Hide file tree
Showing 4 changed files with 232 additions and 588 deletions.
1 change: 1 addition & 0 deletions @iconify-demo/unplugin-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@types/cookie": "^0.6.0",
"svelte": "^4.2.8",
"svelte-check": "^3.6.2",
"svelte-preprocess": "^5.1.3",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"unplugin-icons": "^0.18.1",
Expand Down
4 changes: 2 additions & 2 deletions @iconify/tools/src/svg/parse-style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export function parseSVGStyle(svg: SVG, callback: ParseSVGStyleCallback): void {
from: animationRules,
prevTokens: newTokens,
nextTokens: tokens.slice(0),
}
}
: {
type: 'at-rule',
prop,
Expand All @@ -220,7 +220,7 @@ export function parseSVGStyle(svg: SVG, callback: ParseSVGStyleCallback): void {
childTokens,
prevTokens: newTokens,
nextTokens: tokens.slice(0),
}
}
);

if (result !== undefined) {
Expand Down
1 change: 1 addition & 0 deletions @iconify/tools/src/svg/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export function parseSVG(svg: SVG, callback: ParseSVGCallback): void {
element: CheerioElement,
parents: ParseSVGCallbackItem[]
) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison
if (element.type !== 'tag') {
return;
}
Expand Down
Loading

0 comments on commit 29c70a6

Please sign in to comment.