From 805417d5b4cd1575cd9cb61d03091642d4d35b96 Mon Sep 17 00:00:00 2001 From: Mikhail Gorbunov Date: Fri, 26 Mar 2021 03:46:15 +0500 Subject: [PATCH] husky -> simple-git-hooks `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 --- docs/precommit.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/precommit.md b/docs/precommit.md index 66f32326ada9..d755ce658d68 100644 --- a/docs/precommit.md +++ b/docs/precommit.md @@ -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.