Add prettier pre-commit hook; close #5490

This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-12-24 14:37:41 +09:00
parent 9c66d4a453
commit ebf66a2b80
+6 -2
View File
@@ -3,7 +3,7 @@ default_stages: [commit, push]
default_language_version:
# force all unspecified Python hooks to run python3
python: python3
minimum_pre_commit_version: '2.18.1'
minimum_pre_commit_version: "2.18.1"
repos:
- repo: meta
hooks:
@@ -35,7 +35,7 @@ repos:
- id: forbid-tabs
exclude: Makefile$|Makefile\..+$|makefile$|\.mk$
- id: remove-tabs
args: [--whitespaces-count, '2']
args: [--whitespaces-count, "2"]
exclude: Makefile$|Makefile\..+$|makefile$|\.mk$
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
@@ -50,6 +50,10 @@ repos:
- id: script-must-not-have-extension
name: Local policy is to exclude extension from all shell files
types: [shell]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.38.0
hooks: