DEV Community

Discussion on: Automatically Format your code on Git Commit using Husky, ESLint, Prettier in 9 minutes

Collapse
 
visraelfs profile image
visraelfs

I want to know if is there a way to remove prettier from husky git pre-commit?, because I don't want prettier add a new line at end of file in my classes.

Image description

Collapse
 
ruppysuppy profile image
Tapajyoti Bose

If you don't want an extra line, configure prettier for that. If you don't want prettier to run, configure lint staged, decide which one you want & update accordingly