-
Notifications
You must be signed in to change notification settings - Fork 10
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
Prettier alternatives #283
Comments
https://github.com/pre-commit/mirrors-prettier is now archived completely |
I can’t add anything to what @henryiii said in prettier/prettier#15742 (comment)
… and the following comment:
pre-commit is just so damn convenient. If there was a trivial way to get auto-formatting of PRs working with just GitHub actions, maybe not using pre-commit would be a good path. |
@g-plane @grst please use the issue for discussion.dprint looks interesting too! But:
|
You can add |
FWIW, the mirrors suggested in the issue work fine, I've been using https://github.com/rbubley/mirrors-prettier and it's been fine. |
@henryiii Are you using a paid version of pre-commit.ci ? I thought that dprint downloading plugins at runtime would make it impossible to use with pre-commit.ci for free . dprint/dprint#442 (comment) Edit: sorry I completely misread and interpreted as you saying you're using the dprint mirror.... |
I'm using prettier, as you can see above. :) |
Just got pointed to this: https://prettier.io/blog/2023/11/30/cli-deep-dive Apparently prettier is working on a next-gen CLI that's faster |
Biome has editorconfig support and a tagged pre-commit repo, so apart from YAML formatting, it does everything we could want now. I updated #304 |
What about markdown? |
I don’t think it’s wise to use MyST together with a formatter that doesn’t understand MyST syntax and will therefore happily destroy meaningful syntactical constructs. |
We could have mdformat as a dedicated hook for markdown formatting. Allegedly, it supports myst. |
looks good, but that’d be a big PR reformatting everything. How about we merge #304 and then go for it before the next release? |
yes... we can make the next release at the paris hackathon. |
Actually, there’s a blocker for mdformat: executablebooks/mdformat-myst#13 |
I guess we could disable colon fences in the myst configuration? |
We could, but that would
So I’ll go ahead with #304 anyway, because the same applies for prettier, and the question if we should have any markdown formatting together with MyST is out-of-scope for #304. |
I filed #353 for the MDFormat part of this |
Prettier requires a full-blown node installation and is rather slow. Alternatives would be welcome.
Originally posted by @flying-sheep in #277 (comment)
The text was updated successfully, but these errors were encountered: