How Did I Set Up Markdownlint Again?

A quick way to gather up those files from all of your repositories.

When starting a new project, there’s always a number of configurations to set up. Of course, you could maintain templates to generate these things using some tool, but if you’re like me and aren’t starting a new project every other day, you might just ask yourself “Hey what did I do for this in the past? I think I’ll just copy it from there.”

Here’s what I do to grab my other Markdownlint configs for easy copying/comparison:

$ find . -name ".markdownlint.json"

If you have your stuff set up right, you can even cmd+click to open those files right from your terminal!

Depending on what you’re looking for, it may also be handy to exclude the files that aren’t yours. Here’s an example with ESLint configs:

$ find . -name ".eslintrc*" -not -path "*/node_modules/*"

See also