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
Now that the number of contributors is growing, I'd like to introduce prettier for code formatting
Here is the syntax I usually use. I don't want us to customize prettier rules. That way people can get mad at prettier and not us if they don't like any of the formatting 🤣
I don't want to add it to our CI and bother our contributors. Instead, we can silently fix formatting directly in the main branch using a dedicated app later. I'll take care of that once this issue is resolved. But in a nutshell
Register a single purpose GitHub app with contents:write permission, webhooks disabled.
Install the app on this repository
Add the App ID as variable and private key as secret to this repository
Create a new workflow that is triggered by push to main
### Description
- **build(prettier): run Prettier for missing files of the project**
- **style(prettier): run Prettier format**
<!--
This pull request template provides suggested sections for framing your
work.
You're welcome to change or remove headers if it doesn't fit your use
case. :)
-->
### Context
Relates to #89
Now that the number of contributors is growing, I'd like to introduce
prettier
for code formattingHere is the syntax I usually use. I don't want us to customize prettier rules. That way people can get mad at prettier and not us if they don't like any of the formatting 🤣
https://github.com/gr2m/github-app-slack-demo/blob/47fc915ff72c7b0a3e4f9b26761c18c303cd5152/package.json#L15
I don't want to add it to our CI and bother our contributors. Instead, we can silently fix formatting directly in the main branch using a dedicated app later. I'll take care of that once this issue is resolved. But in a nutshell
contents:write
permission, webhooks disabled.main
lint:fix
npm scriptstyle: prettier
and push themHere is a
format.yml
workflow for reference:https://github.com/gr2m/github-app-slack-demo/blob/47fc915ff72c7b0a3e4f9b26761c18c303cd5152/.github/workflows/format.yml
The text was updated successfully, but these errors were encountered: