English | 简体中文
Using npm:
# Install dependency
$ npm i husky-conflict-hook -D
# It is based on husky and lint-staged. Usually, we have already install husky and lint-staged, so I didn't put them in the dependencies. So you can also install them individually. Due to different versions of husky, the configuration of husky may be slightly different. For details, it depends on the documents of different versions of husky
$ npm i husky lint-staged -D
# its option in package.json is
```json
{
"lint-staged": {
"*": "husky-conflict-hook"
},
}
# "*" means that every file in the git staged will be checked