From ae33e494a91ced3e80f139ca075cb27bc645acb2 Mon Sep 17 00:00:00 2001 From: Carlos Frias <32054831+terracota-p@users.noreply.github.com> Date: Mon, 13 Sep 2021 18:38:11 +0200 Subject: [PATCH] fix(docs): lint-staged install instructions (#11363) As per https://github.com/okonet/lint-staged#installation-and-setup The previous ones were not working. --- docs/precommit.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/precommit.md b/docs/precommit.md index 9a22010a4bcf..955acb272ab5 100644 --- a/docs/precommit.md +++ b/docs/precommit.md @@ -12,7 +12,7 @@ You can use Prettier with a pre-commit tool. This can re-format your files that _Make sure Prettier is installed and is in your [`devDependencies`](https://docs.npmjs.com/specifying-dependencies-and-devdependencies-in-a-package-json-file) before you proceed._ ```bash -npx mrm lint-staged +npx mrm@2 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.