Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/guides/local-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ npx husky install
# Add commit message linting to commit-msg hook
echo "npx --no -- commitlint --edit \$1" > .husky/commit-msg
# Windows users should use ` to escape dollar signs
echo "npx --no -- commitlint --edit `$1" > .husky/commit-msg
echo "npx --no -- commitlint --edit `$1`" > .husky/commit-msg
```

As an alternative you can create a script inside `package.json`
Expand All @@ -62,7 +62,7 @@ yarn husky install
# Add commit message linting to commit-msg hook
echo "yarn commitlint --edit \$1" > .husky/commit-msg
# Windows users should use ` to escape dollar signs
echo "yarn commitlint --edit `$1" > .husky/commit-msg
echo "yarn commitlint --edit `$1`" > .husky/commit-msg
```

As an alternative you can create a script inside `package.json`
Expand All @@ -88,7 +88,7 @@ pnpm husky install
# Add commit message linting to commit-msg hook
echo "pnpm dlx commitlint --edit \$1" > .husky/commit-msg
# Windows users should use ` to escape dollar signs
echo "pnpm dlx commitlint --edit `$1" > .husky/commit-msg
echo "pnpm dlx commitlint --edit `$1`" > .husky/commit-msg
```

As an alternative you can create a script inside `package.json`
Expand All @@ -111,7 +111,7 @@ bunx husky install
# Add commit message linting to commit-msg hook
echo "bunx commitlint --edit \$1" > .husky/commit-msg
# Windows users should use ` to escape dollar signs
echo "bunx commitlint --edit `$1" > .husky/commit-msg
echo "bunx commitlint --edit `$1`" > .husky/commit-msg
```

== deno
Expand All @@ -127,7 +127,7 @@ deno task --eval husky install
# Add commit message linting to commit-msg hook
echo "deno task --eval commitlint --edit \$1" > .husky/commit-msg
# Windows users should use ` to escape dollar signs
echo "deno task --eval commitlint --edit `$1" > .husky/commit-msg
echo "deno task --eval commitlint --edit `$1`" > .husky/commit-msg
```

:::
Expand Down