💼 This rule is enabled in the following configs: strict-gjs, strict-gts.
Disallow tagName attribute on LinkTo component
The tagName attribute on <LinkTo> components is deprecated. Use the appropriate HTML element or component instead.
Examples of incorrect code for this rule:
<template>
<LinkTo @route="index" tagName="button">Home</LinkTo>
</template><template>
<LinkTo @route="about" @tagName="span">About</LinkTo>
</template>Examples of correct code for this rule:
<template>
<LinkTo @route="index">Home</LinkTo>
</template><template>
<button type="button" {{on "click" (fn this.transitionTo "index")}}>Home</button>
</template>