Skip to content

Warning for unused $bindable() #17589

@ieedan

Description

@ieedan

Describe the problem

There's many times (mostly when using llms for autocomplete) where you have props that are marked as $bindable() but are never actually mutated within the component. This is often a bug because there is some implementation missing or the developer/agent is misunderstanding the need for a prop to be marked as $bindable().

Describe the proposed solution

A warning given in this scenario along the lines of:

Prop `name` is marked as `$bindable()` but is never mutated. svelte/no-unused-bindable

Importance

nice to have

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