Without husky / lint-staged If you want to do it without husky and lint-staged you just need this file in .githooks/pre-commit if you want you can install prettier as a dev dependency locally or have it globally you can have a .prettierrc like: also you need this command to make it executable set the hooks
Recent Comments