zwave-js / node-zwave-js

Z-Wave driver written entirely in JavaScript/TypeScript
https://zwave-js.github.io/node-zwave-js/
MIT License
755 stars 613 forks source link

Add dprint to devcontainer #6722

Open AlCalzone opened 7 months ago

AlCalzone commented 7 months ago
          I tried this on Arm mac and still needs the prettier arm version. There is a [PR](https://github.com/dprint/dprint-plugin-prettier/pull/75) to add it. 

We might want to add dprint install to the devcontainer for use with the vscode extensoin drpint.

Extensions install steps: Install dprint's CLI

I don't think it comes installed. or it's not on the path. curl -fsSL https://dprint.dev/install.sh | sh

and need to add some lines to the .zshrcfile:

export DPRINT_INSTALL="/home/node/.dprint"
export PATH="$DPRINT_INSTALL/bin:$PATH"

Edit: we might be able to add this to vscode settings: "dprint.path":"./node_modules/dprint/dprint",

Originally posted by @zackbcom in https://github.com/zwave-js/node-zwave-js/issues/6656#issuecomment-1936918127

AlCalzone commented 1 month ago

@zackbcom can you confirm whether this is fixed now? I just tried the devcontainer and dprint seems to be available immediately.