-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Markdownlint CHANGES.md
#12431
Markdownlint CHANGES.md
#12431
Conversation
Thank you for the pull request, @jjspace! ✅ We can confirm we have a CLA on file for you. |
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.
Thanks @jjspace! Yes, we skipped linting this file when first implementing markdownlint because of a good majority of it is non-compliant.
-
Any reason you can think of to not fix violations of
MD001/heading-increment
? While we do require specific (lack of) formatting for release notes to be picked up on the website, I don't think any of our automated processes rely on theCHANGES.md
structure. I believe this can be fixed automatically by passing--fix
option tomarkdownlint-cli
. -
I'd like to avoid being pick-and-choosy about applying linting rules like
MD031/blanks-around-fences
. I think we should either disable it everywhere or nowhere. I also believe violations of this rule can be fixed automatically by passing--fix
option tomarkdownlint-cli
.
I agree that going back and fixing violations of MD046/code-block-style
are likely moot since they will require some manual input and are just old at this point.
This would change almost every single heading in the file because it's "wrong" right at the top where we go from H1 to H3. # Changes
### 1.123 Version I just didn't think it was worth going through them all 1 by 1. This is not a ### 1.88 - 2021-12-01
##### Fixes :wrench: The other reason I left it alone is because Github makes a distinction that H1 and H2 get a horizontal line break and H3 onward don't. This would change the way our CHANGES actually look (maybe for the better) but worth noting. Headings
H1H2H3I'm still willing to go through and do these in the interest of correctness, it shouldn't take that long but let me know what you think.
I also would like to avoid picking and choosing. The motivation here was because this file is nearly entirely lists and extra lines between items in a list make them render much more spread out. I didn't realize the rule had a special override for these code blocks. Check the dropdown for a demonstration of the difference but I've opted to turn off the blank line rule for list items as I feel the tighter lists look much better Code blocks in lists
No Blank line:
Blank lines only around code block:
Notice that it forces extra space around every list item even if they are not next to the code block |
Thanks @jjspace.
Ah, I was hoping the IMO we should do the fix, but I'm not going to hold up this PR over it. Just let me know your plan @jjspace.
I agree and I'm happy with this config 👍 |
@ggetz I've corrected all heading nesting. It actually went faster than I expected using some search and replace in VSCode. It does make quite a big file diff though but hopefully still easy to review. I think this should be good to go now |
Fantastic, thanks @jjspace! |
Description
We were ignoring the
CHANGES.md
file from linting. I assume this is just because there were so many errors in there. Instead of fixing them all I disabled the 3 that were causing the most issues:I also did a spelling pass on this file. I skipped acronyms because I'm not sure the best approach to those yet but the other changes are all valid.
Issue number and link
no issue
Testing plan
Make sure
npm run markdownlint
doesn't return any errorsAuthor checklist
CONTRIBUTORS.md
CHANGES.md
with a short summary of my change