Is it possible to format only modified lines in pre-commit hooks

Viewed 901

Using prettier when we commit changes it formats all the code inside the file in husky pre-commit. Is there any better method to change only modified lines of code in the file?.

0 Answers
Related