husky-conflict-hook

0.0.3 • Public • Published

English | 简体中文

husky-conflict-hook used to check for git conflict by the keyword <<<<<<< HEAD


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

Links

Package Sidebar

Install

npm i husky-conflict-hook

Weekly Downloads

6

Version

0.0.3

License

ISC

Unpacked Size

5.41 kB

Total Files

4

Last publish

Collaborators

  • ka-houl