mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2025-05-28 02:17:23 +02:00
.pre-commit-config.yaml: use the local hook for prettier
This commit is contained in:
parent
aea53e0c57
commit
358e3e7f43
@ -5,6 +5,7 @@
|
|||||||
# See https://pre-commit.com for more information
|
# See https://pre-commit.com for more information
|
||||||
# See https://pre-commit.ci for more information
|
# See https://pre-commit.ci for more information
|
||||||
ci:
|
ci:
|
||||||
|
skip: [pnpm-prettier]
|
||||||
# I don't need so many duplicated notifications on the same thing as I keep
|
# I don't need so many duplicated notifications on the same thing as I keep
|
||||||
# autoupdating manually too. Besides it just creates extra branch I never
|
# autoupdating manually too. Besides it just creates extra branch I never
|
||||||
# touch.
|
# touch.
|
||||||
@ -73,16 +74,26 @@ repos:
|
|||||||
- id: reuse
|
- id: reuse
|
||||||
exclude: ^.cache\/.*$
|
exclude: ^.cache\/.*$
|
||||||
|
|
||||||
- repo: https://github.com/rbubley/mirrors-prettier
|
# - repo: https://github.com/rbubley/mirrors-prettier
|
||||||
rev: "v3.3.1"
|
# rev: "v3.3.1"
|
||||||
|
# hooks:
|
||||||
|
# - id: prettier
|
||||||
|
# additional_dependencies: [
|
||||||
|
# # https://www.npmjs.com/package/prettier
|
||||||
|
# "prettier@3.3.1",
|
||||||
|
# # https://www.npmjs.com/package/@prettier/plugin-xml
|
||||||
|
# "@prettier/plugin-xml@3.4.1",
|
||||||
|
# ]
|
||||||
|
|
||||||
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: pnpm-prettier
|
||||||
additional_dependencies: [
|
name: prettier
|
||||||
# https://www.npmjs.com/package/prettier
|
entry: pnpm exec prettier --write
|
||||||
"prettier@3.3.1",
|
language: system
|
||||||
# https://www.npmjs.com/package/@prettier/plugin-xml
|
# Better handled by pretty-format-json from pre-commit-hooks.
|
||||||
"@prettier/plugin-xml@3.4.1",
|
# Remember to have *.json in .prettierignore!
|
||||||
]
|
exclude_types: [json]
|
||||||
|
|
||||||
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
||||||
rev: "2.7.3"
|
rev: "2.7.3"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user