update dependencies / pre-commit configuration

This commit is contained in:
Aminda Suomalainen ⚧ 2024-08-11 07:01:16 +03:00
parent ecf438f230
commit 8f74358ecf
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
6 changed files with 35 additions and 18 deletions

View File

@ -9,8 +9,9 @@ indent_style = space
indent_size = 2
max_line_length = 78
[.prettierrc]
[.json]
indent_style = tab
indent_size = tab
[{LICENSE,*.{markdown,md}}]
trim_trailing_whitespace = false

1
.npmrc Normal file
View File

@ -0,0 +1 @@
manage-package-manager-versions=true

View File

@ -1,5 +1,5 @@
# @format
# See https://pre-commit.com for more information
# See https://pre-commit.ci for more information
ci:
# Forĝejo/Gitea mirrors will autoclose pull requests. This should decrease
# the frequency of unnecessary PRs.
@ -8,7 +8,10 @@ ci:
skip: [prettier]
default_language_version:
python: pypy3
node: "lts"
# Remember .python-version !
python: "3.12"
ruby: ".ruby-version"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
@ -16,21 +19,39 @@ repos:
hooks:
- id: trailing-whitespace
args: ["--markdown-linebreak-ext", "md"]
- id: end-of-file-fixer
exclude_types: [svg, tsv]
#- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-xml
- id: destroyed-symlinks
- id: detect-private-key
- 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
hooks:
- id: prettier
name: prettier
entry: corepack pnpm exec prettier --cache --ignore-unknown --write
entry: corepack pnpx prettier --cache --ignore-unknown --write
language: system
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python

1
.prettierignore Normal file
View File

@ -0,0 +1 @@
*.json

View File

@ -1,7 +0,0 @@
{
"insertPragma": true,
"proseWrap": "always",
"singleAttributePerLine": true,
"plugins": ["prettier-plugin-sh"],
"overrides": [{ "files": ".prettierrc", "options": { "parser": "json" } }]
}

View File

@ -1,7 +1,7 @@
{
"devDependencies": {
"prettier": "3.3.2",
"prettier-plugin-sh": "0.14.0"
"@aminda/global-prettier-config": "2024.28.4"
},
"packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a"
"packageManager": "pnpm@9.7.0+sha512.dc09430156b427f5ecfc79888899e1c39d2d690f004be70e05230b72cb173d96839587545d09429b55ac3c429c801b4dc3c0e002f653830a420fa2dd4e3cf9cf",
"prettier": "@aminda/global-prettier-config"
}