Skip to content

Instantly share code, notes, and snippets.

@valterbarros
Created June 27, 2023 17:27
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 valterbarros/f627fb0142f80f9475f10ab7e4a2599e to your computer and use it in GitHub Desktop.
Save valterbarros/f627fb0142f80f9475f10ab7e4a2599e to your computer and use it in GitHub Desktop.
#!/bin/bash
git diff --name-only --staged > .vscode/staged && \
docker exec -i tavola bash -c "yarn eslint --fix $(cat .vscode/staged) | grep -E 'warning|error'; " && \
docker exec -i tavola yarn run lint:styles --fix $(cat .vscode/staged) && \
git add $(cat .vscode/staged)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment