W
W
Wahid2021-05-27 19:38:18
JavaScript
Wahid, 2021-05-27 19:38:18

Setting up a pre-commit hook?

Good afternoon. There are eslint and stylelint linters for both husky and lint-staged precommit hooks. How to hang a pre-commit so that it only looks at changed files or only added and changed code (if possible) and not all files

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2021-05-27
@yarkov

Exactly as described in the documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question