-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
[WIP] Use dprint for internal js/ts formating #4507
Conversation
Hey @keroxp I'm very glad you're tackled this issue! Just yesterday @dsherret merged PR to add Rust shell to dprint (dprint/dprint#162), and it's now available on https://crates.io/crates/dprint. Keep in mind that there are still some quirks for Deno codebase when using dprint. |
Also, although this is great, we should merge #4498 first as it includes a move to ES private fields which was blocked because of a lack of Prettier support. I "could" unpick it, but it is complex. I also agree that we should use the standalone binary, instead of another version of Deno. |
|
@@ -72,7 +72,7 @@ export class ListenerImpl implements Listener { | |||
async *[Symbol.asyncIterator](): AsyncIterator<Conn> { | |||
while (true) { | |||
try { | |||
yield await this.accept(); | |||
yield (await this.accept()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was fixed in swc so is not necessary anymore.
Before you actually run it on the code, could we wait until this milestone is resolved in dprint? https://github.com/dsherret/dprint/milestone/2 It's way less problems than before, but still a bit of work to do. Might be two more weeks or so :) |
@dsherret Yes, this may be too early adaption to dprint. I'll re-try after that. |
cargo run fmt
with latestdeno
builddeno fmt
.prettierignore
doesn't workcargo run
shows all expanded glob arguments...