Skip to content

Add Markdown Linting #726

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

Merged
merged 23 commits into from
Mar 28, 2025
Merged

Add Markdown Linting #726

merged 23 commits into from
Mar 28, 2025

Conversation

vburzynski
Copy link
Contributor

  • Adds markdownlint-cli2 to lint the markdown files
  • configures markdownlint options
  • fixes several minor issues and normalizes style to be consistent
  • adds lefthook and a pre-commit hook to run markdownlint on staged changes

Copy link

@brian-penguin brian-penguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it! the less I have to think about syntax the better.

@@ -0,0 +1,2 @@
[tools]
node = "latest"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neat! I had not heard of mise before. Sort of like a make meets asdf type deal?
I'm curious what the majority of people use for a language management system at thoughtbot. I think I would assume that asdf is the most default but I have no idea.

Would you be opposed to also adding a .tool-versions file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I wouldn't be opposed to adding .tool-versions

mise is a drop in replacement for asdf. I swapped to it after asdf v0.16 broke a whole bunch of things and I couldn't get node or something to installl

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added 😎

@@ -3,11 +3,11 @@
Use [Suspenders]:

```sh
$ gem install suspenders

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an interesting one. I have mixed feelings about $ to prevent whole "copy paste didn't read" interactions. On one hand it's probably good we do that. On the other, it's probably confusing to devs who aren't used to the syntax. Wondering if anyone has stronger opinions on it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I compared this to other code blocks marked with console/shell etc, and all of the other instances did not include the $ or other marker. My preference would be not adding in $, but it's not a strong opinion. Whichever way we went, I'd recommend making it consistent everywhere.

@vburzynski vburzynski merged commit c944cad into main Mar 28, 2025
2 checks passed
@vburzynski vburzynski deleted the vb-add-markdownlint branch March 28, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants