mirror of
https://github.com/NickKaramoff/shareon
synced 2025-03-10 00:10:15 +01:00
Add local pre-commit hook to lint with Deno
This commit is contained in:
parent
abfc303a55
commit
e4f786f938
@ -1,6 +1,7 @@
|
|||||||
ci:
|
ci:
|
||||||
skip:
|
skip:
|
||||||
- deno-fmt
|
- deno-fmt
|
||||||
|
- deno-lint
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
@ -31,6 +32,14 @@ repos:
|
|||||||
exclude_types:
|
exclude_types:
|
||||||
- markdown
|
- markdown
|
||||||
exclude: ^pnpm-lock\.yaml$
|
exclude: ^pnpm-lock\.yaml$
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: deno-lint
|
||||||
|
name: deno lint
|
||||||
|
entry: deno lint
|
||||||
|
args: ["--fix"]
|
||||||
|
language: system
|
||||||
|
files: '\.[cm]?[jt]s$'
|
||||||
- repo: https://github.com/kytta/mirrors-svgo
|
- repo: https://github.com/kytta/mirrors-svgo
|
||||||
rev: v4.0.0-rc.1
|
rev: v4.0.0-rc.1
|
||||||
hooks:
|
hooks:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user