-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
62 lines (55 loc) · 1.66 KB
/
.pre-commit-config.yaml
File metadata and controls
62 lines (55 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: check-json
- id: check-yaml
# - id: check-toml
- id: check-added-large-files
- id: check-merge-conflict
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
name: check shell scripts
- repo: local
hooks:
- id: check-format
name: check format
entry: deno run -A npm:prettier --check --write
language: unsupported
types_or:
[html, scss, css, ts, javascript, tsx, jsx, json, yaml, markdown]
# - id: lint-files
# name: lint files
# entry: deno lint --fix
# language: unsupported
# types_or: [ts, javascript, tsx, jsx]
- id: lint-files
name: lint files
entry: deno run -A npm:eslint --max-warnings 0 --fix
language: unsupported
files: ^src/
# types_or: [ts, javascript, tsx, jsx]
types_or: [javascript, jsx]
# - id: check-types
# name: check types
# entry: deno check
# language: unsupported
# types_or: [ts, javascript, tsx, jsx]
- id: audit-dependencies
name: audit dependencies
entry: deno audit
args: [--socket]
language: unsupported
files: ^deno\.lock$
pass_filenames: false
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
name: detect secrets
args: ['--baseline', '.secrets.baseline']