Skip to content

Instantly share code, notes, and snippets.

@charliecalvert
Last active August 13, 2019 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charliecalvert/f19ea847f81f8634b37ef2b9c12a77e0 to your computer and use it in GitHub Desktop.
Save charliecalvert/f19ea847f81f8634b37ef2b9c12a77e0 to your computer and use it in GitHub Desktop.
Script to run prettier.
#!/bin/bash
find . -iname "*.js" \
-not -path "**/node_modules/**" \
-not -path "**/bower_components/**" \
-not -path "**/bundle.js" \
-not -path "**/registerServiceWorker.js" \
-exec "prettier" --write {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment