Skip to content

Commit 507d253

Browse files
committed
Run formatter.
1 parent 801459a commit 507d253

File tree

1 file changed

+28
-31
lines changed

1 file changed

+28
-31
lines changed

.pre-commit-config.yaml

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
exclude: |
2-
(?x)^(
3-
^.github/|
4-
bin/.*\.gitkeep
5-
)
61
repos:
72
- repo: https://github.com/pre-commit/pre-commit-hooks
83
rev: v5.0.0
@@ -21,32 +16,34 @@ repos:
2116
rev: v4.0.0-alpha.8
2217
hooks:
2318
- id: prettier
24-
entry: prettier --config .prettierrc --write
25-
exclude: "pnpm-lock.yaml"
26-
exclude_types: ["svg", "editorconfig", "gitignore"]
27-
additional_dependencies: ["prettier", "prettier-plugin-astro"]
28-
files: \.(astro|mdx|md|yml|yaml|ts|tsx|js|mjs)$
29-
30-
- repo: local
31-
hooks:
32-
- id: local_prettier
33-
name: local prettier
34-
entry: prettier --config .prettierrc --write
35-
language: node
36-
exclude_types: ["svg", "editorconfig", "gitignore"]
19+
args: ["--tab-width", "2", "--trailing-comma", "es5"]
3720
additional_dependencies: ["prettier", "prettier-plugin-astro"]
21+
exclude: "pnpm-lock.yaml"
3822
files: \.(astro|mdx|md|yml|yaml|ts|tsx|js|mjs)$
3923

40-
- id: astro-check
41-
name: astro check
42-
entry: pnpm run astro check
43-
language: system
44-
files: "^(?:public|src)/.+|astro\\.config\\.mjs|tsconfig\\.json"
45-
pass_filenames: false
46-
47-
- id: astro-build
48-
name: astro build
49-
entry: pnpm run astro build
50-
language: system
51-
files: "^(?:public|src)/.+|astro\\.config\\.mjs|tsconfig\\.json"
52-
pass_filenames: false
24+
# - repo: local
25+
# hooks:
26+
# - id: local_prettier
27+
# name: local prettier
28+
# entry: prettier --write
29+
# args: ["--tab-width", "2", "--trailing-comma", "es5"]
30+
# language: node
31+
# exclude_types: ["svg", "editorconfig", "gitignore"]
32+
# additional_dependencies: ["astro", "prettier", "prettier-plugin-astro"]
33+
# files: \.(astro|mdx|md|yml|yaml|ts|tsx|js|mjs)$
34+
#
35+
# - id: astro-check
36+
# name: astro check
37+
# entry: astro check
38+
# language: node
39+
# files: "^(?:public|src)/.+|astro\\.config\\.mjs|tsconfig\\.json"
40+
# pass_filenames: false
41+
# additional_dependencies: ["astro"]
42+
#
43+
# - id: astro-build
44+
# name: astro build
45+
# entry: astro build
46+
# language: node
47+
# files: "^(?:public|src)/.+|astro\\.config\\.mjs|tsconfig\\.json"
48+
# pass_filenames: false
49+
# additional_dependencies: ["astro"]

0 commit comments

Comments
 (0)