Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prettier config #18

Closed
corasaurus-hex opened this issue Aug 15, 2022 · 5 comments
Closed

Add prettier config #18

corasaurus-hex opened this issue Aug 15, 2022 · 5 comments

Comments

@corasaurus-hex
Copy link
Collaborator

It would be nice to have automatic and consistent formatting for js code as we write it.

https://prettier.io/

@borkdude
Copy link
Member

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.

@borkdude
Copy link
Member

Already installed, geez, that was easy:

npm install -g prettier
package-install prettier-js
M-x prettier-js-mode

@borkdude
Copy link
Member

@corasaurus-hex I'm not sure what needs to be done before closing this issue

@corasaurus-hex
Copy link
Collaborator Author

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.

@corasaurus-hex
Copy link
Collaborator Author

We can also add prettier as a dev dependency so that everyone gets a consistent version for formatting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants