pre-commit autoupdate & corepack awareness

This commit is contained in:
Aminda Suomalainen 2024-07-07 08:59:22 +03:00
parent fbabd7a09f
commit be3bb765dc
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
4 changed files with 17 additions and 7 deletions

1
.gitignore vendored
View File

@ -7,6 +7,7 @@
!.gitignore
!.pre-commit-config.yaml
!.prettierrc
!.nvmrc
# Other ignores
node_modules

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
lts/*

View File

@ -5,10 +5,7 @@
ci:
# https://github.com/pre-commit-ci/issues/issues/83
autoupdate_schedule: quarterly
skip: [prettier]
default_language_version:
python: pypy3
skip: [pnpm-install-dev, prettier]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
@ -32,17 +29,27 @@ repos:
- id: check-pre-commit-ci-config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.5
rev: 0.28.6
hooks:
- id: check-dependabot
- id: check-github-workflows
- repo: local
hooks:
- id: pnpm-install-dev
name: Install pnpm dev dependencies
entry: corepack pnpm install -D
language: system
always_run: true
#verbose: true
pass_filenames: false
- id: prettier
name: prettier
entry: pnpm exec prettier --cache --ignore-unknown --write
entry: corepack pnpm exec prettier --cache --ignore-unknown --write
language: system
# Better handled by pretty-format-json from pre-commit-hooks.
# Remember to have *.json in .prettierignore!
exclude_types: [json]
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: "2.7.3"

View File

@ -2,5 +2,6 @@
"devDependencies": {
"prettier": "3.3.2",
"prettier-plugin-sh": "0.14.0"
}
},
"packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a"
}