Skip to content

Commit

Permalink
fix(docs): lint-staged install instructions (#11363)
Browse files Browse the repository at this point in the history
As per https://github.com/okonet/lint-staged#installation-and-setup

The previous ones were not working.
  • Loading branch information
terracota-p committed Sep 13, 2021
1 parent a1a7502 commit ae33e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/precommit.md
Expand Up @@ -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.
Expand Down

0 comments on commit ae33e49

Please sign in to comment.