Add rule to suggest using references ([x][y]
) or resources ([x](y)
)
#266
Labels
👍 phase/yes
Post is accepted and can be worked on
🦋 type/enhancement
This is great to have
🙆 yes/confirmed
This is confirmed and ready to be worked on
Subject of the feature
Ban either all or multiple-use resources and suggest using references instead.
Problem
I prefer using references. Some people prefer the inverse.
Expected behavior
remark-lint-link-style
,remark-lint-no-resource-image
.I often prefer using references, so this rule could ban all resources. Some people prefer the inverse. This rule could be somewhat smart, when preferring references, by allowing resources if they occur once. This would only ban them if URLs are used more than once (including definitions): I often add a list of related projects to readmes, which probably won’t occur in the rest of the document.
Overtime though, I might add a link again, and miss that it could either be defined already, or used twice.
Alternatives
I considered a specific rule for banning multi-use urls only, but I think this is better solved in a more generic way
The text was updated successfully, but these errors were encountered: