Skip to content

pre-commit git hooks for Deno projects.

License

Notifications You must be signed in to change notification settings

nozaq/pre-commit-deno

Repository files navigation

pre-commit-deno

pre-commit git hooks for Deno projects.

Using pre-commit-deno with pre-commit

Add this to your .pre-commit-config.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.