mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-24 20:29:23 +01:00
switch to local prettier + sh plugin
This commit is contained in:
parent
0670924dd0
commit
cbbe880f05
39
.pre-commit-config.yaml
vendored
39
.pre-commit-config.yaml
vendored
@ -9,7 +9,7 @@ ci:
|
|||||||
# the frequency of unnecessary PRs.
|
# the frequency of unnecessary PRs.
|
||||||
# https://github.com/pre-commit-ci/issues/issues/83
|
# https://github.com/pre-commit-ci/issues/issues/83
|
||||||
autoupdate_schedule: quarterly
|
autoupdate_schedule: quarterly
|
||||||
skip: [pylint]
|
skip: [pylint, pnpm-prettier]
|
||||||
|
|
||||||
# use pypy3 for python
|
# use pypy3 for python
|
||||||
default_language_version:
|
default_language_version:
|
||||||
@ -71,17 +71,24 @@ repos:
|
|||||||
rev: v3.1.0
|
rev: v3.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: add-trailing-comma
|
- id: add-trailing-comma
|
||||||
- repo: https://github.com/rbubley/mirrors-prettier
|
- repo: local
|
||||||
rev: "v3.3.0"
|
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: pnpm-prettier
|
||||||
exclude_types: [python, pyi, jupyter]
|
name: prettier
|
||||||
additional_dependencies: [
|
entry: pnpm exec prettier --cache --ignore-unknown --write
|
||||||
# https://www.npmjs.com/package/prettier
|
language: system
|
||||||
"prettier@3.2.5",
|
exclude_types: [json]
|
||||||
# https://www.npmjs.com/package/@prettier/plugin-ruby
|
# - repo: https://github.com/rbubley/mirrors-prettier
|
||||||
"@prettier/plugin-ruby@4.0.4",
|
# rev: "v3.3.0"
|
||||||
]
|
# hooks:
|
||||||
|
# - id: prettier
|
||||||
|
# exclude_types: [python, pyi, jupyter]
|
||||||
|
# additional_dependencies: [
|
||||||
|
# # https://www.npmjs.com/package/prettier
|
||||||
|
# "prettier@3.2.5",
|
||||||
|
# # https://www.npmjs.com/package/@prettier/plugin-ruby
|
||||||
|
# "@prettier/plugin-ruby@4.0.4",
|
||||||
|
# ]
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 24.4.2
|
rev: 24.4.2
|
||||||
hooks:
|
hooks:
|
||||||
@ -89,11 +96,11 @@ repos:
|
|||||||
#Refer to pyproject.toml
|
#Refer to pyproject.toml
|
||||||
#args: ["--line-length", "79", "--target-version", "py310"]
|
#args: ["--line-length", "79", "--target-version", "py310"]
|
||||||
#- id: black-jupyter
|
#- id: black-jupyter
|
||||||
- repo: https://github.com/scop/pre-commit-shfmt
|
# - repo: https://github.com/scop/pre-commit-shfmt
|
||||||
rev: v3.8.0-1
|
# rev: v3.8.0-1
|
||||||
hooks:
|
# hooks:
|
||||||
- id: shfmt
|
# - id: shfmt
|
||||||
#- id: shfmt-docker
|
#- id: shfmt-docker
|
||||||
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
||||||
rev: "2.7.3"
|
rev: "2.7.3"
|
||||||
hooks:
|
hooks:
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"plugins": ["@prettier/plugin-ruby", "prettier-plugin-sh"],
|
||||||
|
"overrides": [{ "files": ".prettierrc", "options": { "parser": "json" } }]
|
||||||
|
}
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@prettier/plugin-ruby": "4.0.4",
|
"@prettier/plugin-ruby": "4.0.4",
|
||||||
"prettier": "3.3.0"
|
"prettier": "3.3.1",
|
||||||
|
"prettier-plugin-sh": "0.14.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
65
pnpm-lock.yaml
vendored
65
pnpm-lock.yaml
vendored
@ -9,10 +9,13 @@ importers:
|
|||||||
devDependencies:
|
devDependencies:
|
||||||
"@prettier/plugin-ruby":
|
"@prettier/plugin-ruby":
|
||||||
specifier: 4.0.4
|
specifier: 4.0.4
|
||||||
version: 4.0.4(prettier@3.3.0)
|
version: 4.0.4(prettier@3.3.1)
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.3.0
|
specifier: 3.3.1
|
||||||
version: 3.3.0
|
version: 3.3.1
|
||||||
|
prettier-plugin-sh:
|
||||||
|
specifier: 0.14.0
|
||||||
|
version: 0.14.0(prettier@3.3.1)
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
"@prettier/plugin-ruby@4.0.4":
|
"@prettier/plugin-ruby@4.0.4":
|
||||||
@ -23,17 +26,59 @@ packages:
|
|||||||
peerDependencies:
|
peerDependencies:
|
||||||
prettier: ^3.0.0
|
prettier: ^3.0.0
|
||||||
|
|
||||||
prettier@3.3.0:
|
mvdan-sh@0.10.1:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-J9odKxERhCQ10OC2yb93583f6UnYutOeiV5i0zEDS7UGTdUt0u+y8erxl3lBKvwo/JHyyoEdXjwp4dke9oyZ/g==,
|
integrity: sha512-kMbrH0EObaKmK3nVRKUIIya1dpASHIEusM13S4V1ViHFuxuNxCo+arxoa6j/dbV22YBGjl7UKJm9QQKJ2Crzhg==,
|
||||||
|
}
|
||||||
|
|
||||||
|
prettier-plugin-sh@0.14.0:
|
||||||
|
resolution:
|
||||||
|
{
|
||||||
|
integrity: sha512-hfXulj5+zEl/ulrO5kMuuTPKmXvOg0bnLHY1hKFNN/N+/903iZbNp8NyZBTsgI8dtkSgFfAEIQq0IQTyP1ZVFQ==,
|
||||||
|
}
|
||||||
|
engines: { node: ">=16.0.0" }
|
||||||
|
peerDependencies:
|
||||||
|
prettier: ^3.0.3
|
||||||
|
|
||||||
|
prettier@3.3.1:
|
||||||
|
resolution:
|
||||||
|
{
|
||||||
|
integrity: sha512-7CAwy5dRsxs8PHXT3twixW9/OEll8MLE0VRPCJyl7CkS6VHGPSlsVaWTiASPTyGyYRyApxlaWTzwUxVNrhcwDg==,
|
||||||
}
|
}
|
||||||
engines: { node: ">=14" }
|
engines: { node: ">=14" }
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
snapshots:
|
sh-syntax@0.4.2:
|
||||||
"@prettier/plugin-ruby@4.0.4(prettier@3.3.0)":
|
resolution:
|
||||||
dependencies:
|
{
|
||||||
prettier: 3.3.0
|
integrity: sha512-/l2UZ5fhGZLVZa16XQM9/Vq/hezGGbdHeVEA01uWjOL1+7Ek/gt6FquW0iKKws4a9AYPYvlz6RyVvjh3JxOteg==,
|
||||||
|
}
|
||||||
|
engines: { node: ">=16.0.0" }
|
||||||
|
|
||||||
prettier@3.3.0: {}
|
tslib@2.6.3:
|
||||||
|
resolution:
|
||||||
|
{
|
||||||
|
integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==,
|
||||||
|
}
|
||||||
|
|
||||||
|
snapshots:
|
||||||
|
"@prettier/plugin-ruby@4.0.4(prettier@3.3.1)":
|
||||||
|
dependencies:
|
||||||
|
prettier: 3.3.1
|
||||||
|
|
||||||
|
mvdan-sh@0.10.1: {}
|
||||||
|
|
||||||
|
prettier-plugin-sh@0.14.0(prettier@3.3.1):
|
||||||
|
dependencies:
|
||||||
|
mvdan-sh: 0.10.1
|
||||||
|
prettier: 3.3.1
|
||||||
|
sh-syntax: 0.4.2
|
||||||
|
|
||||||
|
prettier@3.3.1: {}
|
||||||
|
|
||||||
|
sh-syntax@0.4.2:
|
||||||
|
dependencies:
|
||||||
|
tslib: 2.6.3
|
||||||
|
|
||||||
|
tslib@2.6.3: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user