Hello,
Here's the recipe to format js files with the new prettier alternative called dprint. Written with rust, it's fast.
install dprint
in your project folder, init dprint
update sublime-fmt rule
{
"rules": [
{
"cmd": [
"$HOME/.cargo/bin/dprint",
"fmt",
"--stdin",
"$file"
],
"selector": "source.js"
}
],
}
Hello,
Here's the recipe to format
jsfiles with the newprettieralternative calleddprint. Written with rust, it's fast.install dprint
in your project folder, init dprint
update sublime-fmt rule
{ "rules": [ { "cmd": [ "$HOME/.cargo/bin/dprint", "fmt", "--stdin", "$file" ], "selector": "source.js" } ], }