Skip to content

asset not covered by no-navigation-without-resolve #1502

@sacrosanctic

Description

@sacrosanctic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions