Skip to content

References to each index in keying expression seen as undeclared #3274

@Conduitry

Description

@Conduitry

From sveltejs/eslint-plugin-svelte3#37

Something like

{#each foo as bar, i (i)}hey{/each}

produces an erroneous warning that i is not defined. The key seems to be created correctly from the each block's ctx.i - there's just an incorrect warning from the compiler about it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions