c6p / logseq-hypothesis

Logseq plugin for hypothes.is
MIT License
86 stars 14 forks source link

Add prettier for code formatting #12

Closed phildenhoff closed 2 years ago

phildenhoff commented 2 years ago

This adds pnpm format as a script to apply prettier formatting. It also formats existing JS, TS, and Vue files.

I have another PR in the works and wanted to make sure the code all looked the same, so I figured adding Prettier would be the best way to do that — let me know if you have another preferred formatting method.

I copied the contents of the .gitignore into the .prettierignore as a rule, because I wasn't sure which files don't need to be ignored by Prettier, and I figured more is better.

c6p commented 2 years ago

Thank you, @phildenhoff, for your work. Prettier is fine.

Cheers