update dependencies / pre-commit configuration
This commit is contained in:
parent
ecf438f230
commit
8f74358ecf
|
@ -9,8 +9,9 @@ indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
max_line_length = 78
|
max_line_length = 78
|
||||||
|
|
||||||
[.prettierrc]
|
[.json]
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
|
indent_size = tab
|
||||||
|
|
||||||
[{LICENSE,*.{markdown,md}}]
|
[{LICENSE,*.{markdown,md}}]
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# @format
|
# See https://pre-commit.com for more information
|
||||||
|
# See https://pre-commit.ci for more information
|
||||||
ci:
|
ci:
|
||||||
# Forĝejo/Gitea mirrors will autoclose pull requests. This should decrease
|
# Forĝejo/Gitea mirrors will autoclose pull requests. This should decrease
|
||||||
# the frequency of unnecessary PRs.
|
# the frequency of unnecessary PRs.
|
||||||
|
@ -8,7 +8,10 @@ ci:
|
||||||
skip: [prettier]
|
skip: [prettier]
|
||||||
|
|
||||||
default_language_version:
|
default_language_version:
|
||||||
python: pypy3
|
node: "lts"
|
||||||
|
# Remember .python-version !
|
||||||
|
python: "3.12"
|
||||||
|
ruby: ".ruby-version"
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
@ -16,21 +19,39 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
args: ["--markdown-linebreak-ext", "md"]
|
args: ["--markdown-linebreak-ext", "md"]
|
||||||
- id: end-of-file-fixer
|
exclude_types: [svg, tsv]
|
||||||
|
#- id: end-of-file-fixer
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
- id: check-executables-have-shebangs
|
- id: check-executables-have-shebangs
|
||||||
|
- id: check-json
|
||||||
|
- id: check-merge-conflict
|
||||||
- id: check-shebang-scripts-are-executable
|
- id: check-shebang-scripts-are-executable
|
||||||
|
- id: check-toml
|
||||||
|
- id: check-xml
|
||||||
- id: destroyed-symlinks
|
- id: destroyed-symlinks
|
||||||
- id: detect-private-key
|
- id: detect-private-key
|
||||||
- id: fix-byte-order-marker
|
- id: fix-byte-order-marker
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- id: mixed-line-ending
|
||||||
|
args: [--fix=auto]
|
||||||
|
- id: pretty-format-json
|
||||||
|
args:
|
||||||
|
# Remember also: --no-sort-keys
|
||||||
|
# ASCII excludes the älphäbet amongst others
|
||||||
|
[--autofix, --indent, "\t", --no-ensure-ascii]
|
||||||
|
|
||||||
|
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
|
||||||
|
rev: v1.6.1
|
||||||
|
hooks:
|
||||||
|
- id: check-pre-commit-ci-config
|
||||||
|
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
name: prettier
|
name: prettier
|
||||||
entry: corepack pnpm exec prettier --cache --ignore-unknown --write
|
entry: corepack pnpx prettier --cache --ignore-unknown --write
|
||||||
language: system
|
language: system
|
||||||
|
|
||||||
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
*.json
|
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"insertPragma": true,
|
|
||||||
"proseWrap": "always",
|
|
||||||
"singleAttributePerLine": true,
|
|
||||||
"plugins": ["prettier-plugin-sh"],
|
|
||||||
"overrides": [{ "files": ".prettierrc", "options": { "parser": "json" } }]
|
|
||||||
}
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"prettier": "3.3.2",
|
"@aminda/global-prettier-config": "2024.28.4"
|
||||||
"prettier-plugin-sh": "0.14.0"
|
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a"
|
"packageManager": "pnpm@9.7.0+sha512.dc09430156b427f5ecfc79888899e1c39d2d690f004be70e05230b72cb173d96839587545d09429b55ac3c429c801b4dc3c0e002f653830a420fa2dd4e3cf9cf",
|
||||||
|
"prettier": "@aminda/global-prettier-config"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue