- Install prettier
- Make a .prettierignore file, and add directories you'd like prettier to not format, for example:
**/node_modules - Run
prettier --write "**/*.js"*Don't forget the quotes. - Optional: if you want to format JSON/SCSS files too, replace js with json/scss.