Skip to content

Instantly share code, notes, and snippets.

@whoisryosuke
Created April 13, 2019 19:08
Show Gist options
  • Save whoisryosuke/b2cb81c284539eaa1ee17f3f8733e771 to your computer and use it in GitHub Desktop.
Save whoisryosuke/b2cb81c284539eaa1ee17f3f8733e771 to your computer and use it in GitHub Desktop.
Prettier - Format or unminify code (single file or any folder of certain files)
# Quickly fix one file
npx prettier --write your-file.html
# Quickly fix all files of one type
npx prettier --write src/**/*.{js,jsx}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment