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) => {
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: