husky -> simple-git-hooks (#10601)

`Lint staged` along with `mrm` recently migrated from `husky` to `simple-git-hooks`.

It is reflected in their [docs](https://github.com/okonet/lint-staged):

> It will install and configure simple-git-hooks and lint-staged depending on code quality tools from package.json dependencies so please make sure you install (npm install --save-dev) and configure all code quality tools like Prettier, ESlint prior that.

Migration brought these benefits for users: 

* lighter `node_modules` 
   `simple-git-hooks` (10 kb) is lighter then husky4 (1mb) and husky5 (25kb)
* Out of the box `Yarn 2` support
* No worry for licensing. 
   Simple git hooks has MIT license, like husky 4
This commit is contained in:
Mikhail Gorbunov authored and GitHub committed 2021-03-27 01:08:24 +02:00
1 parent cc5981227a
commit 7678033855
1 file changed
+1 -1
+1 -1
View File
@@ -15,7 +15,7 @@ _Make sure Prettier is installed and is in your [`devDependencies`](https://docs
npx mrm lint-staged
```
This will install [husky](https://github.com/typicode/husky) and [lint-staged](https://github.com/okonet/lint-staged), then add a configuration to the project’s `package.json` that will automatically format supported files in a pre-commit hook.
This will install [simple-git-hooks](https://github.com/toplenboren/simple-git-hooks) and [lint-staged](https://github.com/okonet/lint-staged), then add a configuration to the project’s `package.json` that will automatically format supported files in a pre-commit hook.
Read more at the [lint-staged](https://github.com/okonet/lint-staged#configuration) repo.