1
0
mirror of https://github.com/Mikaela/cv.git synced 2024-11-29 12:09:28 +01:00

pre-commit: cleanup prettier/pnpm hooks && add missing packagemanager to package.json

This commit is contained in:
Aminda Suomalainen 2024-06-27 07:42:28 +03:00
parent 5fbc8f70e3
commit 9b4bf73bb5
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 13 additions and 18 deletions

View File

@ -5,7 +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] skip: [install-dev-deps, 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.
@ -63,25 +63,19 @@ repos:
- id: check-github-workflows - id: check-github-workflows
- id: check-gitlab-ci - id: check-gitlab-ci
# - repo: https://github.com/rbubley/mirrors-prettier
# 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 - repo: local
hooks: hooks:
- id: pnpm-prettier - id: install-dev-deps
name: prettier name: Install pnpm dev dependencies
entry: pnpm exec prettier --cache --ignore-unknown --write entry: corepack pnpm install -D
language: system
always_run: true
verbose: true
pass_filenames: false
- id: prettier
name: prettier
entry: corepack pnpm exec prettier --cache --ignore-unknown --write
language: system language: system
# Better handled by pretty-format-json from pre-commit-hooks.
# Remember to have *.json in .prettierignore!
exclude_types: [json] exclude_types: [json]
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python - repo: https://github.com/editorconfig-checker/editorconfig-checker.python

3
package.json vendored
View File

@ -3,5 +3,6 @@
"@prettier/plugin-xml": "3.4.1", "@prettier/plugin-xml": "3.4.1",
"prettier": "3.3.2", "prettier": "3.3.2",
"prettier-plugin-sh": "0.14.0" "prettier-plugin-sh": "0.14.0"
} },
"packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a"
} }