-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rule no-link-without-base
#891
Comments
@ota-meshi There's also |
Thank you for proposing the rule!
Shouldn't we use
As you say, I think |
Thinking about this more. As for merging the rules, there are some additional considerations:
How would we go about a unified rule? Deprecate |
I like this idea, and I also like your suggestion for the new rule name
I see, thank you for the explanation 😄
The rule will need to change when the API changes, but until then I think it's useful for people.
Yeah 👍 I think it would be useful for people to have that check implemented.
So that means we should allow things like |
Motivation
The motivation is basically similar to #675 - when doing internal navigation, you almost always want to prepend the base path. However, unlike
goto
, links can also be used for external navigation. To navigate this complicated issue, I propose to only check relative links (at least by default).Description
Add a rule that would trigger on any link without a base path. However, there are quite some edge cases
Examples
Additional comments
Based on #679 (comment)
The text was updated successfully, but these errors were encountered: