ember/template-no-link-to-positional-params
April 20, 2026 ยท View on GitHub
๐ผ This rule is enabled in the ๐ template-lint-migration config.
Disallow positional params in LinkTo component
Rule Details
Positional parameters in <LinkTo> components are deprecated. Use named arguments instead.
Examples
Examples of incorrect code for this rule:
<template>
{{! Old positional params style }}
<LinkTo "posts.post" @model={{this.post}}>Post</LinkTo>
</template>
Examples of correct code for this rule:
<template>
<LinkTo @route="posts.post" @model={{this.post}}>Post</LinkTo>
</template>
<template>
<LinkTo @route="index">Home</LinkTo>
</template>