mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-08-18 04:17:21 +02:00
Compare commits
No commits in common. "a3c369180b75b410f2deafaaf5071050ba0e211c" and "c898406c3627f5584507d23bdbec28a38e3666a3" have entirely different histories.
a3c369180b
...
c898406c36
@ -3,7 +3,6 @@
|
||||
ci:
|
||||
# Attempts to use networking and fails at name resolution, local hook
|
||||
# skip: [bundler-audit, pylint, latexmk, exiftool]
|
||||
skip: [pnpm-prettier]
|
||||
# Forĝejo/Gitea mirrors will autoclose pull requests. This should decrease
|
||||
# the frequency of unnecessary PRs.
|
||||
# https://github.com/pre-commit-ci/issues/issues/83
|
||||
@ -126,30 +125,21 @@ repos:
|
||||
# ensure nothing breaks the rules.
|
||||
|
||||
# prettier, opinionated code formatter
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: pnpm-prettier
|
||||
name: prettier
|
||||
entry: pnpm exec prettier --cache --ignore-unknown --write
|
||||
language: system
|
||||
exclude_types: [json]
|
||||
|
||||
#- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
# - repo: https://github.com/rbubley/mirrors-prettier
|
||||
# rev: "v3.2.5"
|
||||
# hooks:
|
||||
# - id: prettier
|
||||
# additional_dependencies: [
|
||||
# # https://www.npmjs.com/package/prettier
|
||||
# "prettier@3.2.5",
|
||||
# # https://www.npmjs.com/package/prettier-plugin-nginx
|
||||
# "prettier-plugin-nginx@1.0.3",
|
||||
# # https://www.npmjs.com/package/prettier-plugin-toml
|
||||
# "prettier-plugin-toml@2.0.1",
|
||||
# # https://www.npmjs.com/package/prettier-plugin-sort-json
|
||||
# #"prettier-plugin-sort-json@4.0.0",
|
||||
# ]
|
||||
- repo: https://github.com/rbubley/mirrors-prettier
|
||||
rev: "v3.2.5"
|
||||
hooks:
|
||||
- id: prettier
|
||||
additional_dependencies: [
|
||||
# https://www.npmjs.com/package/prettier
|
||||
"prettier@3.2.5",
|
||||
# https://www.npmjs.com/package/prettier-plugin-nginx
|
||||
"prettier-plugin-nginx@1.0.3",
|
||||
# https://www.npmjs.com/package/prettier-plugin-toml
|
||||
"prettier-plugin-toml@2.0.1",
|
||||
# https://www.npmjs.com/package/prettier-plugin-sort-json
|
||||
#"prettier-plugin-sort-json@4.0.0",
|
||||
]
|
||||
|
||||
# Black, opinionated Python code formatter
|
||||
# - repo: https://github.com/psf/black
|
||||
|
@ -584,7 +584,7 @@ if hash pnpm 2>/dev/null; then
|
||||
alias npx=pnpx
|
||||
alias pnpmx=pnpx
|
||||
if ! hash prettier 2>/dev/null; then
|
||||
alias prettier="pnpm exec prettier"
|
||||
alias prettier="pnpx prettier"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user