Closed Aatmaj-Zephyr closed 1 year ago
Pls assign me this issue for hacktoberfest
thanks @Aatmaj-Zephyr - though I prefer formatting to happen precommit
this is currently set up to happen using husky, but I welcome any ideas for improvements
https://github.com/colbyfayock/next-wordpress-starter/blob/main/.husky/pre-commit
This action can be used as workflow- https://github.com/marketplace/actions/prettier-action
Right but this would still happen on GitHub and apply a new commit in the automation correct? So it's still not happening precommit
Yes
Closing this for now as I don't currently have any intent on running formatting in an Action. Thanks for the idea though.
Make a GitHub workflow which will format all files when pucshed to the main branch.