Skip to content

Instantly share code, notes, and snippets.

@arefaslani
Created June 20, 2020 12:27
Show Gist options
  • Save arefaslani/bd9c6ac24985544f024da6cbfb5e3cf8 to your computer and use it in GitHub Desktop.
Save arefaslani/bd9c6ac24985544f024da6cbfb5e3cf8 to your computer and use it in GitHub Desktop.
pre-commit:
commands:
prettier:
files: git diff --name-only --staged
glob: "*.rb"
run: bundle exec rbprettier --write {files}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment