phntxx / dashboard

:bar_chart: a nice and simple dashboard / landing page.
MIT License
951 stars 55 forks source link

Add `yarn format` script (`yarn prettier` was not writing formatted version) #67

Closed dkarter closed 2 years ago

dkarter commented 2 years ago

Currently yarn prettier script does not actually format files, just shows what they would look like when formatted.

This PR:

phntxx commented 2 years ago

Hi!

Thanks for your contribution, however there was one thing that bothered me: the fact that "yarn format" was dependent on "yarn prettier". Splitting the two up makes changes from one to another independent and also removes dependence on yarn (-> both "prettier" and "format" can be run using npm run xyz if need be).

Kind regards