💭 How to Format All Files in a Directory with Prettier | by Dr. ... =================================================================== !https://levelup.gitconnected.com/how-to-format-all-files-in-a-directory-with-prettier-5f0ff5f4ffb2 Date: August 19, 2023 How To Format All Files in a Directory with Prettier Format any project, folder, or workspace using Prettier code formatter one line in the Prettier CLI. Medium · levelup.gitconnected.com [1] 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. ``` bash prettier --write . ``` I just used this on my thoughts repo. ``` bash prettier --write templates ``` !!! note This post is a thought [2]. It's a short note that I make about someone else's content online #thoughts [3] References: [1]: https://levelup.gitconnected.com/how-to-format-all-files-in-a-directory-with-prettier-5f0ff5f4ffb2 [2]: /thoughts/ [3]: /tags/thoughts/