asset not covered by no-navigation-without-resolve

#1502

Development PR

Issue

S
sacrosanctic
Mar 25, 2026, 12:28 AM

What did you do?

<a href="/file.pdf">link</a>
<a href={asset("/file.pdf")}>link</a>

Problem

Sometimes, it's references a static asset, not a path. But there's no indication the user should use asset in the rule description.

Potential solutions

rename no-navigation-without-resolve to:

  • require-path-validation
  • no-pathname-without-validation

add to the rules description to use asset

add another rule

no-pathname-without-asset