This adds a pre-commit hook to your react app that will absolutely ensure everything that gets committed gets prettified - this will mean if you ever collaborate with people who don't use prettier, they'll be forced to subscribe to your style guide even if they don't have the plugin.
It also means you can work on the code in something that doesn't have the plugin (e.g. another IDE) safe in the knowledge that husky has your back in terms of prettifying when you eventually commit.
Once this is installed, you can prettify everything in your src folder by running this command;
This adds a pre-commit hook to your react app that will absolutely ensure everything that gets committed gets prettified - this will mean if you ever collaborate with people who don't use prettier, they'll be forced to subscribe to your style guide even if they don't have the plugin.
It also means you can work on the code in something that doesn't have the plugin (e.g. another IDE) safe in the knowledge that husky has your back in terms of prettifying when you eventually commit.
Once this is installed, you can prettify everything in your
src
folder by running this command;\M/