Skip to content

Have form-control-has-label accept accessibleDirectives option #1074

Open
@vincerubinetti

Description

@vincerubinetti

In anchor-has-content we can allow a Vue directive to take the place of content.

I have a custom v-tooltip directive that automatically adds an aria-label (or other appropriate aria prop) to the element, making it accessible at run time, but this plugin has no way of knowing that. Instead of disabling the rule globally or on specific lines, it'd be nice to have an option for this.

In fact, I wonder if more generally we can tell eslint to treat some prop e.g. v-whatever to act as a different prop e.g. aria-label.

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