You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prettier is a very popular code formatter that uses very opinionated but sensible styles to format your code and prevent ongoing debates about code styles. So we wanted a GitHub action to automatically format your code using Prettier.
Describe the solution you'd like
The solution utilizes the git-auto-commit-action alongside whatever formatting script we have in your repository.
For example, our repository has the following script to format using Prettier:
To set up the GitHub action, all we need to do is install our dependencies (e.g. yarn install), run our format script (e.g. yarn format), and then commit any changes if necessary.
Additional context
By utilizing Prettier with GitHub Actions, we can ensure that our code is formatted consistently and without any issues.
It also helps to reduce manual work when formatting code.
The text was updated successfully, but these errors were encountered:
Problem statement
Prettier is a very popular code formatter that uses very opinionated but sensible styles to format your code and prevent ongoing debates about code styles. So we wanted a GitHub action to automatically format your code using Prettier.
Describe the solution you'd like
The solution utilizes the git-auto-commit-action alongside whatever formatting script we have in your repository.
For example, our repository has the following script to format using Prettier:
To set up the GitHub action, all we need to do is install our dependencies (e.g.
yarn install
), run our format script (e.g.yarn format
), and then commit any changes if necessary.Additional context
By utilizing Prettier with GitHub Actions, we can ensure that our code is formatted consistently and without any issues.
It also helps to reduce manual work when formatting code.
The text was updated successfully, but these errors were encountered: