jens1101 / asset-register

0 stars 0 forks source link

Improve format on save #4

Open jens1101 opened 4 hours ago

jens1101 commented 4 hours ago

The Prettier VSCode extension does not work well with mono repos. It just uses the prettierignore in the root and doesn't take workspaces into consideration.

It would be ideal to run npx prettier --write ${file} on save instead.

jens1101 commented 4 hours ago

This is possible using the RunOnSave extension, but it has not been added to the Nix repo yet. I will need to create a PR for that.