Skip to content

Commit

Permalink
Fix: Add missing changes in website/version-stable precommit doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Pietrucci-Blacher committed May 7, 2024
1 parent e9e20b6 commit 7b60273
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/versioned_docs/version-stable/precommit.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,31 +75,31 @@ Git-format-staged requires Python v3 or v2.7. Python is usually pre-installed on
```bash
npx husky init
npm install --save-dev git-format-staged
node --eval "fs.writeFileSync('.husky/pre-commit', 'git-format-staged -f \\'prettier --ignore-unknown --stdin --stdin-filepath \"{}\"\\' .\\n')"
node --eval "fs.writeFileSync('.husky/pre-commit', 'git-format-staged -f \'prettier --ignore-unknown --stdin --stdin-filepath \"{}\"\' .\n')"
```

<!--yarn-->

```bash
yarn husky init
yarn add --dev git-format-staged
node --eval "fs.writeFileSync('.husky/pre-commit', 'git-format-staged -f \\'prettier --ignore-unknown --stdin --stdin-filepath \"{}\"\\' .\\n')"
node --eval "fs.writeFileSync('.husky/pre-commit', 'git-format-staged -f \'prettier --ignore-unknown --stdin --stdin-filepath \"{}\"\' .\n')"
```

<!--pnpm-->

```bash
pnpm exec husky-init
pnpm add --save-dev git-format-staged
node --eval "fs.writeFileSync('.husky/pre-commit', 'git-format-staged -f \\'prettier --ignore-unknown --stdin --stdin-filepath \"{}\"\\' .\\n')"
node --eval "fs.writeFileSync('.husky/pre-commit', 'git-format-staged -f \'prettier --ignore-unknown --stdin --stdin-filepath \"{}\"\' .\n')"
```

<!--bun-->

```bash
bunx husky init
bun add --dev git-format-staged
bun --eval "fs.writeFileSync('.husky/pre-commit', 'git-format-staged -f \\'prettier --ignore-unknown --stdin --stdin-filepath \"{}\"\\' .\\n')"
bun --eval "fs.writeFileSync('.husky/pre-commit', 'git-format-staged -f \'prettier --ignore-unknown --stdin --stdin-filepath \"{}\"\' .\n')"
```

<!--END_DOCUSAURUS_CODE_TABS-->
Expand Down

0 comments on commit 7b60273

Please sign in to comment.