Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nozaq/pre-commit-deno
pre-commit git hooks for Deno projects.
https://github.com/nozaq/pre-commit-deno
deno git javascript linter pre-commit pre-commit-hook typescript
Last synced: about 2 months ago
JSON representation
pre-commit git hooks for Deno projects.
- Host: GitHub
- URL: https://github.com/nozaq/pre-commit-deno
- Owner: nozaq
- License: mit
- Created: 2021-11-23T08:02:15.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-23T11:09:41.000Z (over 2 years ago)
- Last Synced: 2024-10-04T19:44:29.999Z (2 months ago)
- Topics: deno, git, javascript, linter, pre-commit, pre-commit-hook, typescript
- Homepage:
- Size: 4.88 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-deno - pre-commit-deno - pre-commit git hooks for Deno projects. (Tools / XML)
README
# pre-commit-deno
[pre-commit](https://pre-commit.com/) git hooks for [Deno](https://deno.land/) projects.
## Using pre-commit-deno with pre-commit
Add this to your `.pre-commit-config.yaml`
```yaml
- repo: https://github.com/nozaq/pre-commit-deno
rev: 0.1.0 # Use the ref you want to point at
hooks:
- id: deno-fmt
- id: deno-lint
# - id: ...
```## Hooks available
### `deno-fmt-check`
Checks if all JavaScript, TypeScript, Markdown and JSON files are formatted.
### `deno-fmt`
Auto-format all JavaScript, TypeScript, Markdown and JSON files.
### `deno-lint`
Lint all JavaScript and TypeScript source code files.
### `deno-test`
Run tests.