feat: add no-reference-like-urls rule#433
Conversation
snitin315
left a comment
There was a problem hiding this comment.
LGTM, thanks. Leaving it open for 2nd review.
JoshuaKGoldberg
left a comment
There was a problem hiding this comment.
Looking good! No requests from me that aren't already noted. Thanks! 🚀
|
@lumirlumir please take a look at the responses to your comments. |
lumirlumir
left a comment
There was a problem hiding this comment.
Sorry for the delay on my end. I've responded to your previous comment.
lumirlumir
left a comment
There was a problem hiding this comment.
Nice improvements! I’ve left a few comments about some other cases that are missing.
lumirlumir
left a comment
There was a problem hiding this comment.
LGTM, Would like @snitin315 to verify the changes before merging.
snitin315
left a comment
There was a problem hiding this comment.
The following case doesn't report any errors, is this expected behavior?
<!-- eslint markdown/no-reference-like-urls: "error" -->
[Mercury]( mercury) is the first planet from the sun.
[mercury]: https://example.com/mercury/
|
@snitin315 This should be fixed now. |
|
ping @snitin315 |
nzakas
left a comment
There was a problem hiding this comment.
Since it's been over a month and I've verified the changes, I'm going to merge this.
Prerequisites checklist
What is the purpose of this pull request?
Add a new rule, no-reference-like-url, to disallow inline links or images when the URL matches a defined reference identifier.
What changes did you make? (Give an overview)
Implemented the no-reference-like-url rule with autofix, added documentation, and included tests.
Related Issues
Fixes #419
Is there anything you'd like reviewers to focus on?