Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infra: auto-format changes with dprint? #3922

Open
chriskrycho opened this issue May 15, 2024 · 0 comments
Open

infra: auto-format changes with dprint? #3922

chriskrycho opened this issue May 15, 2024 · 0 comments

Comments

@chriskrycho
Copy link
Contributor

I was thinking about how we can make the process of working on the book easier, and one big way is to have format-on-save “just work” in people’s editors using something like Prettier or dprint. (I would pick dprint between those two.) In that case, I was thinking we might also want to set up some automation like the DefinitelyTyped project did, where a bot fixes formatting if it doesn’t match when merging the PR, so that contributors don’t have to try to get formatting done as part of their contribution—e.g. if they make a fix from the web editor.

(This is filed squarely in “ideas that might not be a good fit for us” bucket, but I wanted to write it down here while I was thinking about it so I did not forget it!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant