pre-commit autoupdate, switch to local prettier

This commit is contained in:
Aminda Suomalainen 2024-06-20 09:01:24 +03:00
parent e36e4eb9f7
commit d16a3be24c
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
3 changed files with 14 additions and 3 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
node_modules/
pnpm-lock.yaml

View File

@ -3,13 +3,14 @@ ci:
# the frequency of unnecessary PRs. # the frequency of unnecessary PRs.
# https://github.com/pre-commit-ci/issues/issues/83 # https://github.com/pre-commit-ci/issues/issues/83
autoupdate_schedule: quarterly autoupdate_schedule: quarterly
skip: [prettier]
default_language_version: default_language_version:
python: pypy3 python: pypy3
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0 rev: v4.6.0
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
args: ["--markdown-linebreak-ext", "md"] args: ["--markdown-linebreak-ext", "md"]
@ -23,10 +24,12 @@ repos:
- id: detect-private-key - id: detect-private-key
- id: fix-byte-order-marker - id: fix-byte-order-marker
- repo: https://github.com/pre-commit/mirrors-prettier - repo: local
rev: "v3.0.3"
hooks: hooks:
- id: prettier - id: prettier
name: prettier
entry: pnpm exec prettier --cache --ignore-unknown --write
language: system
- 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"

6
package.json Normal file
View File

@ -0,0 +1,6 @@
{
"devDependencies": {
"prettier": "3.3.2",
"prettier-plugin-sh": "0.14.0"
}
}