Disallow empty links.
Markdown syntax can make it difficult to easily see that you've forgotten to give a link a destination. This is especially true when writing prose in Markdown, in which case you may intend to create a link but leave the destination for later...and then forget to go back and add it.
This rule warns when it finds links that either don't have a URL specified or have only an empty fragment ("#"
).
Examples of incorrect code:
[ESLint]()
[Skip to Content](#)
If you aren't concerned with empty links, you can safely disable this rule.