From 16da9afde9c646e417fcdb09ddf6698c09320b92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Thu, 13 Mar 2025 15:25:59 +0100 Subject: [PATCH] chore: style Context parsing error type fix --- .changeset/good-timers-cheat.md | 5 +++++ src/parser/style-context.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/good-timers-cheat.md diff --git a/.changeset/good-timers-cheat.md b/.changeset/good-timers-cheat.md new file mode 100644 index 00000000..241a0aaa --- /dev/null +++ b/.changeset/good-timers-cheat.md @@ -0,0 +1,5 @@ +--- +"svelte-eslint-parser": patch +--- + +chore: style Context parsing error type fix diff --git a/src/parser/style-context.ts b/src/parser/style-context.ts index fa161c03..96ac48ad 100644 --- a/src/parser/style-context.ts +++ b/src/parser/style-context.ts @@ -23,7 +23,7 @@ export interface StyleContextNoStyleElement { export interface StyleContextParseError { status: "parse-error"; sourceLang: string; - error: any; + error: Error; } export interface StyleContextSuccess { @@ -79,7 +79,7 @@ export function parseStyleContext( from: ctx.parserOptions.filePath, }); } catch (error) { - return { status: "parse-error", sourceLang, error }; + return { status: "parse-error", sourceLang, error: error as Error }; } fixPostCSSNodeLocation(sourceAst, styleElement); sourceAst.walk((node) => { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy