dprint
core_d.js
Our great sponsors
dprint | core_d.js | |
---|---|---|
20 | 1 | |
2,905 | 63 | |
2.5% | - | |
8.8 | 6.2 | |
9 days ago | 5 months ago | |
Rust | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dprint
- Oxlint – written in Rust – 50-100 Times Faster than ESLint
-
How do I stop Prettier from de-structuring object properties onto separate lines?
Prettier is opinionated. dprint is highly configurable.
-
Rome v12.1: a Rust-based linter formatter for TypeScript, JSX and JSON
I mean, I know I am a bad person because of those long names, but that is how life goes sometimes! And the blank line there at the top is just very important to like, catch one's breath, while reading this code.
(I'm really just posting this in the hopes that somebody will throw me a "Bro, just use hpstrlnt, it totally lets you configure that!" -- I have not actually tried Rome to see if it does (it's Monday morning and I'm not quite ready to be disappointed again...))
[1]: dprint is good, and I recommend it as the best code formatter I currently know of: https://dprint.dev/
- What would you rewrite in Rust?
-
What's the best way to generate code?
If it's something in the vein of one of those things then, worst case, you generate the code first, then run it through something like dprint.
- Ask HN: Alternatives to Prettier?
-
Rome Formatter and Rust Update
If it's speed you are looking for, give dprint (https://github.com/dprint/dprint) a try, it has a vscode plugin too.
Why not dprint[1]? Does it not "produce a concrete syntax tree (CST) that represents the original code completely, whitespace, comments and all"?
I'm not terribly familiar with the architecture of dprint, but it's used in Deno with JS/TS plugin and works great so far.
-
Speed-up your Prettier formatting using prettierd
It is written in Rust, and the formatting is built into the Deno executable using a clone of Prettier https://dprint.dev/. You can use it as your main language server for web based JS/TS as well as Deno specific code.
-
Question about deno fmt
dprint is 99% the same as Prettier, I suggest you try it out and look at the diffs. I did, and reported any differences on https://github.com/dprint/dprint ... any differences all got fixed :)
core_d.js
-
Speed-up your Prettier formatting using prettierd
Yeah! And if we ever have the need to have another tool in the list of daemonized tools, we can do it using this: https://github.com/mantoni/core_d.js (as the author of prettierd documented). I find the approach very interesting!
What are some alternatives?
prettier - Prettier is an opinionated code formatter.
nvim-lspconfig - Quickstart configs for Nvim LSP
dotfiles - 👨🏻💻 My dotfiles including Neovim Lua config, ZSH with zinit plugin manager & powerlevel10k prompt
deno - A modern runtime for JavaScript and TypeScript.
apriori-rs - Apriori for association rule mining with Python bindings 🦀🐍
deno_lint - Blazing fast linter for JavaScript and TypeScript written in Rust
lsp-mode - Emacs client/library for the Language Server Protocol
rq - Record Query - A tool for doing record analysis and transformation
orjson - Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy
vaultrs - An asynchronous Rust client library for the Hashicorp Vault API
criterion-table - Generate markdown comparison tables from `cargo-criterion` JSON output