Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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.