mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-29 05:18:48 -05:00
Exclude docs/ only for prettier pre-commit hook
Applying the the built-in hooks to docs/ seems to be fine.
This commit is contained in:
committed by
nblock
parent
9b327f6b56
commit
9c33cbfdc8
@@ -2,8 +2,8 @@
|
|||||||
# See: https://prek.j178.dev/quickstart/
|
# See: https://prek.j178.dev/quickstart/
|
||||||
# See: https://prek.j178.dev/builtin/
|
# See: https://prek.j178.dev/builtin/
|
||||||
|
|
||||||
# Global exclusions - ignore docs and generated code
|
# Global exclusions - ignore generated code
|
||||||
exclude: ^(docs/|gen/)
|
exclude: ^gen/
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
# Built-in hooks from pre-commit/pre-commit-hooks
|
# Built-in hooks from pre-commit/pre-commit-hooks
|
||||||
@@ -42,6 +42,7 @@ repos:
|
|||||||
name: prettier
|
name: prettier
|
||||||
entry: prettier --write --list-different
|
entry: prettier --write --list-different
|
||||||
language: system
|
language: system
|
||||||
|
exclude: ^docs/
|
||||||
types_or:
|
types_or:
|
||||||
[
|
[
|
||||||
javascript,
|
javascript,
|
||||||
|
|||||||
Reference in New Issue
Block a user