-
-
Notifications
You must be signed in to change notification settings - Fork 133
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 documentation for creating custom rules. Closes #261 #262
Conversation
This comment has been minimized.
This comment has been minimized.
@wooorm cannot add reviewers but this PR is ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Here are a bunch of editorial suggestions. I’ll do a more content-focussed review next.
- Could you use
```sh
for bash examples? - Could you use
```markdown
for markdown examples (I believe GH didn’t highlightmd
)? - Could you remove
$
from bash examples (when they don’t show output too). That dollar makes it hard to copy - Could you match code-style to the one used in this project? Especially consistency with trailing commas and quote use
- Similarly, I see both
//
and/*
comment styles, sometimes capitalized, sometimes not. Pick one, preferably capitalized. - Could you use “smart” (curly) apostrophes?
’
, not'
- Can you put enters after sentences? (helps with git diffs)
- I quite prefer reference style links
[text][id]
in prose and[id]: url
at the bottom, can I persuade you to do that to? - I’d prefer using
npm
in examples overyarn
, as I believe npm is still more common thus match mores folks’ workflows
Here are some tools that can help you write better: https://github.com/get-alex/alex, https://wooorm.com/write-music/, https://wooorm.com/readability/.
You might also avoid hedges (https://github.com/words/hedges), fillers (https://github.com/words/fillers), and weasels (https://github.com/words/weasels).
That's some great feedback, thank you! I have addressed your comments, I am just not sure about:
Would you mind help me understand more about this? |
See the alternative version of links here: https://commonmark.org/help/. And see examples in the readme: https://raw.githubusercontent.com/remarkjs/remark-lint/main/readme.md |
Got it! didn't know that alternative syntax. If that's okay with you I would prefer leaving them as they are, ultimately they live in a separate file so they won't be creating any confusion with the other Besides that, everything else should have been fixed, let me know if you are happy to merge it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Some more nits. (btw: did you know you can commit these suggestions through the GH UI? Just checking, that’ll help speed things up).
Other than these nits the article reads great!
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: Titus <tituswormer@gmail.com>
Thanks for taking the time to review in such details! Yes I am aware, I generally review/work on PR directly within VS Code using the GitHub PR Extension, but considering the number of changes request this time I used the GH UI. |
In the "files changed" tab, it should offer to add changes to a batch, which will be a single commit. |
Thank you @ChristianMurphy ! That's really handy to know 😄 sorry about the commit spam then! |
Awesome! |
Thanks for all your work on this, @floroz! |
Thanks for the feedback, happy to help! |
This PR adds a a step by step guide on how to create and add a custom rule to
remark-lint
.The newly created guide is also added as a new section in the
readme.md
.