@next/next/no-html-link-for-pages doesn't work with app router #51742
Labels
bug
Issue was opened via the bug report template.
good first issue
Easy to fix issues, good for newcomers
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000 Binaries: Node: 18.12.1 npm: 8.19.2 Yarn: 1.22.19 pnpm: 8.6.2 Relevant packages: next: 13.4.7 eslint-config-next: 13.4.7 react: 18.2.0 react-dom: 18.2.0 typescript: 5.1.3
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
https://github.com/osdiab/next-eslint-repro-links/blob/main/src/app/page.js#L13
To Reproduce
about
pageindex
page to the/about
page with an<a />
tagnext lint
Describe the Bug
I expect from the description of the lint rule that if i use an
<a />
tag where I should be using a<Link />
tag for an internal link, it would tell me that i should use<Link />
instead.Expected Behavior
It should show a lint error
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: