Skip to content

extend anchor-has-content and heading-has-content with custom directive support #40

@Mikrovolnovka

Description

@Mikrovolnovka

Is your feature request related to a problem? Please describe.
In the example of valid options there is a list of success for e.g. anchor:

<a>Anchor Content!</a>
<a><TextWrapper /><a>
<a is="TextWrapper" />
<a v-text="msg" />
<a v-html="msg" />

We have custom directive v-some-directive which also adds some innerHTML content to tag and I would also have to add to the list of allowed directives.

Describe the solution you'd like
It would be great if we could configure these rules so we can add valid directives and/or attributes so eslint would see next expected results as valid:
Success:

<a>Anchor Content!</a>
<a><TextWrapper /><a>
<a is="TextWrapper" />
<a v-text="msg" />
<a v-html="msg" />
<a v-some-directive="msg" />

Describe alternatives you've considered
Not sure I have some alternatives.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions