mirror of
https://github.com/Mikaela/cv.git
synced 2024-11-22 00:19:24 +01:00
pre-commit: cleanup prettier/pnpm hooks && add missing packagemanager to package.json
This commit is contained in:
parent
5fbc8f70e3
commit
9b4bf73bb5
@ -5,7 +5,7 @@
|
||||
# See https://pre-commit.com for more information
|
||||
# See https://pre-commit.ci for more information
|
||||
ci:
|
||||
skip: [pnpm-prettier]
|
||||
skip: [install-dev-deps, prettier]
|
||||
# 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
|
||||
# touch.
|
||||
@ -63,25 +63,19 @@ repos:
|
||||
- id: check-github-workflows
|
||||
- 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
|
||||
hooks:
|
||||
- id: pnpm-prettier
|
||||
name: prettier
|
||||
entry: pnpm exec prettier --cache --ignore-unknown --write
|
||||
- id: install-dev-deps
|
||||
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: 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
|
||||
|
3
package.json
vendored
3
package.json
vendored
@ -3,5 +3,6 @@
|
||||
"@prettier/plugin-xml": "3.4.1",
|
||||
"prettier": "3.3.2",
|
||||
"prettier-plugin-sh": "0.14.0"
|
||||
}
|
||||
},
|
||||
"packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user