precise-commits
precise-commits copied to clipboard
VSCode: Hook is triggered after commit
When committing files within visual studio code (through the gui) the commit is made and after that, the pre-commit hook is triggered, causing a dirty repository. This does not happen with other tools such as pretty-quick.
I configured it like it is described in the repository. Working on the command line only works fine though.
Same as: https://github.com/nrwl/precise-commits/issues/7
for future googlers
yarn add lint-staged --dev
"lint-staged": { "*.{js,jsx,ts,tsx,md,html,css,scss}": "precise-commits" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }