This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
88 lines (77 loc) · 2.3 KB
/
.pre-commit-config.yaml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: check-added-large-files
- repo: local
hooks:
- id: prettier
name: Frontend/Prettier
language: system
entry: npm run --prefix assets prettier
files: \.(ts|js|tsx|jsx|json|cjs|mjs|yaml)
pass_filenames: false
- id: lint
name: Frontend/Lint
language: system
entry: npm run --prefix assets lint
files: \.(ts|js|tsx|jsx|cjs|mjs)
pass_filenames: false
- id: typecheck
name: Frontend/Typecheck
language: system
entry: npm run --prefix assets tsc
files: \.(ts|js|tsx|jsx|cjs|mjs)
pass_filenames: false
- id: build
name: Frontend/Build
language: system
entry: npm run --prefix assets build
files: \.(ts|js|tsx|jsx|cjs|mjs|ex|exs|heex)
pass_filenames: false
- id: format
name: Elixir/Format
language: system
entry: mix format
files: \.(ex|exs|heex)
pass_filenames: false
- id: unused-deps
name: Elixir/Unused Deps
language: system
entry: mix deps.unlock --unused
files: \.(ex|exs|heex)
pass_filenames: false
- id: compile-deps
name: Elixir/Compile Deps
language: system
entry: mix xref graph --label compile-connected --fail-above 0
files: \.(ex|exs|heex)
pass_filenames: false
- id: credo
name: Elixir/Credo
language: system
entry: mix credo --strict
files: \.(ex|exs|heex)
pass_filenames: false
- id: sobelow
name: Elixir/Sobelow
language: system
entry: mix sobelow --config --exit
files: \.(ex|exs|heex)
pass_filenames: false
- id: test
name: Elixir/Test
language: system
entry: mix test
files: \.(ex|exs|heex)
pass_filenames: false
- id: compile
name: Elixir/Compile
language: system
entry: mix compile --force --warnings-as-errors
files: \.(ex|exs|heex)
pass_filenames: false