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

Introduce auto format for server #135

Open
anuragshukla06 opened this issue Sep 26, 2022 · 3 comments
Open

Introduce auto format for server #135

anuragshukla06 opened this issue Sep 26, 2022 · 3 comments
Assignees

Comments

@anuragshukla06
Copy link
Collaborator

No description provided.

@anuragshukla06
Copy link
Collaborator Author

  1. Look at doc prettier rc
  2. Use git hooks to ensure that the files are in the format before someone pushes the code.

@thedroiddiv
Copy link
Collaborator

thedroiddiv commented Oct 16, 2022

see commit 7697039

The main changes are in package.json and .husky/pre-commit, everything else is just formatting from prettier.
https://typicode.github.io/husky/#/

@Irischrome Irischrome self-assigned this Oct 18, 2022
@thedroiddiv
Copy link
Collaborator

@Irischrome Since you’re working on it thought 7697039 might help.



Sorry, I didn't mention it earlier, I was curious about it and I recollect, had used it somewhere in my older projects.
 The same is implemented here as well.



It uses a node package called ‘husky’. 
I wanted it to be done without husky, even wrote a script and added it preInstall to copy the git hook but realized that would only work on Mac and Linux. Maybe if you want, could find another way to do it without an external package.

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

3 participants