💭 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

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

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

Note

This post is a thought. It’s a short note that I make about someone else’s content online #thoughts

Connections

Related tags and posts connected to this entry.