8000 fix(docs): lint-staged install instructions (#11363) · prettier/prettier@ae33e49 · GitHub
[go: up one dir, main page]

Skip to content

Commit ae33e49

Browse files
authored
fix(docs): lint-staged install instructions (#11363)
As per https://github.com/okonet/lint-staged#installation-and-setup The previous ones were not working.
1 parent a1a7502 commit ae33e49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/precommit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You can use Prettier with a pre-commit tool. This can re-format your files that
1212
_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._
1313

1414
```bash
15-
npx mrm lint-staged
15+
npx mrm@2 lint-staged
1616
```
1717

1818
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.

0 commit comments

Comments
 (0)
0