Skip to content

Update svelte to latest version and add name_loc property #799

@benmccann

Description

@benmccann

svelte-eslint-parser is currently failing on the ecosystem CI as it fails to build with the latest version of Svelte:

src/parser/compat.ts:37:5 - error TS2741: Property 'name_loc' is missing in type '{ type: "SvelteOptions"; name: "svelte:options"; attributes: AST.Attribute[]; fragment: { type: "Fragment"; nodes: never[]; }; start: number; end: number; }' but required in type 'SvelteOptionsRaw'.

src/parser/html.ts:83:5 - error TS2741: Property 'name_loc' is missing in type '{ type: "Attribute"; name: string; value: true; start: number; end: number; }' but required in type 'Attribute'.

src/parser/html.ts:93:5 - error TS2741: Property 'name_loc' is missing in type '{ type: "Attribute"; name: string; value: true; start: number; end: number; }' but required in type 'Attribute'.

src/parser/html.ts:103:3 - error TS2741: Property 'name_loc' is missing in type '{ type: "Attribute"; name: string; value: (AST.Text | AST.ExpressionTag)[]; start: number; end: number; }' but required in type 'Attribute'.

Found 4 errors in 2 files.

Errors  Files
     1  src/parser/compat.ts:37
     3  src/parser/html.ts:83

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions