update/setup prettier

This commit is contained in:
Aminda Suomalainen 2024-06-06 06:37:26 +03:00
parent 3a458de9a7
commit 982e97f946
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
5 changed files with 114 additions and 2 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
.cache/** .cache/**
*_original *_original
browsers browsers
node_modules
# ---> TeX # ---> TeX
## Core latex/pdflatex auxiliary files: ## Core latex/pdflatex auxiliary files:

View File

@ -68,13 +68,13 @@ repos:
- id: check-gitlab-ci - id: check-gitlab-ci
- repo: https://github.com/rbubley/mirrors-prettier - repo: https://github.com/rbubley/mirrors-prettier
rev: "v3.2.5" rev: "v3.3.0"
hooks: hooks:
- id: prettier - id: prettier
exclude_types: [json] exclude_types: [json]
additional_dependencies: [ additional_dependencies: [
# https://www.npmjs.com/package/prettier # https://www.npmjs.com/package/prettier
"prettier@3.2.5", "prettier@3.3.1",
# https://www.npmjs.com/package/@prettier/plugin-xml # https://www.npmjs.com/package/@prettier/plugin-xml
"@prettier/plugin-xml@3.4.1", "@prettier/plugin-xml@3.4.1",
# https://www.npmjs.com/package/prettier-plugin-toml # https://www.npmjs.com/package/prettier-plugin-toml

1
.prettierrc Normal file
View File

@ -0,0 +1 @@
{}

7
package.json Normal file
View File

@ -0,0 +1,7 @@
{
"devDependencies": {
"@prettier/plugin-xml": "3.4.1",
"prettier": "3.3.1",
"prettier-plugin-toml": "2.0.1"
}
}

103
pnpm-lock.yaml Normal file
View File

@ -0,0 +1,103 @@
lockfileVersion: "9.0"
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
importers:
.:
devDependencies:
"@prettier/plugin-xml":
specifier: 3.4.1
version: 3.4.1(prettier@3.3.1)
prettier:
specifier: 3.3.1
version: 3.3.1
prettier-plugin-toml:
specifier: 2.0.1
version: 2.0.1(prettier@3.3.1)
packages:
"@prettier/plugin-xml@3.4.1":
resolution:
{
integrity: sha512-Uf/6/+9ez6z/IvZErgobZ2G9n1ybxF5BhCd7eMcKqfoWuOzzNUxBipNo3QAP8kRC1VD18TIo84no7LhqtyDcTg==,
}
peerDependencies:
prettier: ^3.0.0
"@taplo/core@0.1.1":
resolution:
{
integrity: sha512-BG/zLGf5wiNXGEVPvUAAX/4ilB3PwDUY2o0MV0y47mZbDZ9ad9UK/cIQsILat3bqbPJsALVbU6k3cskNZ3vAQg==,
}
"@taplo/lib@0.4.0-alpha.2":
resolution:
{
integrity: sha512-DV/Re3DPVY+BhBtLZ3dmP4mP6YMLSsgq9qGLXwOV38lvNF/fBlgvQswzlXmzCEefL/3q2eMoefZpOI/+GLuCNA==,
}
"@xml-tools/parser@1.0.11":
resolution:
{
integrity: sha512-aKqQ077XnR+oQtHJlrAflaZaL7qZsulWc/i/ZEooar5JiWj1eLt0+Wg28cpa+XLney107wXqneC+oG1IZvxkTA==,
}
chevrotain@7.1.1:
resolution:
{
integrity: sha512-wy3mC1x4ye+O+QkEinVJkPf5u2vsrDIYW9G7ZuwFl6v/Yu0LwUuT2POsb+NUWApebyxfkQq6+yDfRExbnI5rcw==,
}
prettier-plugin-toml@2.0.1:
resolution:
{
integrity: sha512-99z1YOkViECHtXQjGIigd3talI/ybUI1zB3yniAwUrlWBXupNXThB1hM6bwSMUEj2/+tomTlMtT98F5t4s8IWA==,
}
engines: { node: ">=16.0.0" }
peerDependencies:
prettier: ^3.0.3
prettier@3.3.1:
resolution:
{
integrity: sha512-7CAwy5dRsxs8PHXT3twixW9/OEll8MLE0VRPCJyl7CkS6VHGPSlsVaWTiASPTyGyYRyApxlaWTzwUxVNrhcwDg==,
}
engines: { node: ">=14" }
hasBin: true
regexp-to-ast@0.5.0:
resolution:
{
integrity: sha512-tlbJqcMHnPKI9zSrystikWKwHkBqu2a/Sgw01h3zFjvYrMxEDYHzzoMZnUrbIfpTFEsoRnnviOXNCzFiSc54Qw==,
}
snapshots:
"@prettier/plugin-xml@3.4.1(prettier@3.3.1)":
dependencies:
"@xml-tools/parser": 1.0.11
prettier: 3.3.1
"@taplo/core@0.1.1": {}
"@taplo/lib@0.4.0-alpha.2":
dependencies:
"@taplo/core": 0.1.1
"@xml-tools/parser@1.0.11":
dependencies:
chevrotain: 7.1.1
chevrotain@7.1.1:
dependencies:
regexp-to-ast: 0.5.0
prettier-plugin-toml@2.0.1(prettier@3.3.1):
dependencies:
"@taplo/lib": 0.4.0-alpha.2
prettier: 3.3.1
prettier@3.3.1: {}
regexp-to-ast@0.5.0: {}