precise-commits icon indicating copy to clipboard operation
precise-commits copied to clipboard

VSCode: Hook is triggered after commit

Open uloco opened this issue 7 years ago • 2 comments

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.

uloco avatar Jul 13 '18 12:07 uloco

Same as: https://github.com/nrwl/precise-commits/issues/7

SleeplessByte avatar Aug 28 '18 16:08 SleeplessByte

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" } }

rahulbhadhoriya avatar Apr 29 '20 10:04 rahulbhadhoriya