-
-
Notifications
You must be signed in to change notification settings - Fork 437
Closed
Description
The library is using Prettier to format the changes via lint-staged
and npm run prettier
command. When doing so, however, it formats the entire file, distorting the commit's diff. This makes contributing to the project extremely tedious.
I believe the reason for that is the lack of the explicit Prettier configuration that'd tell Prettier how to format the code. It must be detecting some of my other Prettier configurations and formatting the code base accordingly.
Solution
Let's add an explicit .prettierrc
configuration so that the formatting on the commit hook would produce a consistent result.