Here's my thought on How to Format All Files in a Directory with Prettier | by Dr. Derek Austin 🥳 | Level Up Coding
Use prettier to format all files in a directory. By default prettier does not write, it just echos out the format that it would do. Give it the --write
and it will write the changes to the files.
prettier --write .
I just used this on my thoughts repo.
prettier --write templates
This post was a thought by Waylon Walker see all my thoughts at https://waylonwalker.com/thoughts