Skip to content

docs: add setup guide for deno #4199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions docs/guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ npm install --save-dev @commitlint/config-conventional @commitlint/cli
pnpm add --save-dev @commitlint/{cli,config-conventional}
```

```sh [deno]
deno add --dev npm:@commitlint/cli npm:@commitlint/config-conventional
```

:::

## Configuration
Expand Down
11 changes: 11 additions & 0 deletions docs/guides/local-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,17 @@ npm pkg set scripts.commitlint="commitlint --edit"
echo "pnpm commitlint \${1}" > .husky/commit-msg
```

== deno

```sh
deno add --dev husky

deno task --eval husky init

# Add commit message linting to commit-msg hook
echo "deno task --eval commitlint --edit \$1" > .husky/commit-msg
```

:::

---
Expand Down