Skip to content

documentation update for dprint (javascript) #4

@basaran

Description

@basaran

Hello,

Here's the recipe to format js files with the new prettier alternative called dprint. Written with rust, it's fast.

install dprint

cargo install dprint

in your project folder, init dprint

dprint --init

update sublime-fmt rule

{
    "rules": [
        {
            "cmd": [
                "$HOME/.cargo/bin/dprint",
                "fmt",
                "--stdin",
                "$file"
         ],
            "selector": "source.js"
        }
    ],
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions