squint
squint copied to clipboard
Add prettier config
It would be nice to have automatic and consistent formatting for js code as we write it.
https://prettier.io/
I'm fine with this. I just don't get some decisions but if I can setup my emacs that it will do this for me, I will cave.
Already installed, geez, that was easy:
npm install -g prettier
package-install prettier-js
M-x prettier-js-mode
@corasaurus-hex I'm not sure what needs to be done before closing this issue
We can add a prettierrc file into the root of the project which prettier will pick up and use so that we get consistent formatting across devs and across editors.
We can also add prettier as a dev dependency so that everyone gets a consistent version for formatting.