code100x / cms

Repo for https://app.100xdevs.com/
https://app.100xdevs.com/
925 stars 1.32k forks source link

bug: Fix husky and prettier #1267

Open Parikshit2001 opened 1 day ago

Parikshit2001 commented 1 day ago

Describe the bug Whenever I'm making any commit to cms, husky is running pre commit prettier script and changing ~17 files

To Reproduce Steps to reproduce the behavior:

  1. set up the repo
  2. make a small change
  3. make a commit
  4. revisit the diff in commit, it will show 17 files changed
Parikshit2001 commented 1 day ago
Screenshot 2024-09-19 at 1 07 02 PM Screenshot 2024-09-19 at 1 07 29 PM
wraith2009 commented 23 hours ago

hey @Parikshit2001 for me i just ran a cmd npx husky-init and it was fixed and changing the files is prob due to linting issue . you can ask mods for the reason as i might be wrong

Parikshit2001 commented 23 hours ago

@hkirat what should we do I also did not change anything in the husky I just made a small change removing a unused import and made a commit When the commit was being made, a prettier script ran which changed ~17 files