Skip to content

Bindable props are treated as unused variables by eslint in some cases. #768

Closed
@ptrxyz

Description

@ptrxyz

Since this came up today and Thomas G. Lopes mentioned the possibility of having the issue handled by Svelte's eslint plugin I want to cross post the issue sveltejs/svelte#11901 here:

When creating a component like this:

image

The prop is treated as unread variable yet it should rather be treated as an exported variable since it might still be read from outside.

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