Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode: Hook is triggered after commit #20

Open
uloco opened this issue Jul 13, 2018 · 2 comments
Open

VSCode: Hook is triggered after commit #20

uloco opened this issue Jul 13, 2018 · 2 comments

Comments

@uloco
Copy link

uloco commented Jul 13, 2018

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.

@SleeplessByte
Copy link

Same as: #7

@rahulbhadhoriya
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants