From 982e97f946cb0c709a8deb50e8775d85aa00db87 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 6 Jun 2024 06:37:26 +0300 Subject: [PATCH] update/setup prettier --- .gitignore | 1 + .pre-commit-config.yaml | 4 +- .prettierrc | 1 + package.json | 7 +++ pnpm-lock.yaml | 103 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 114 insertions(+), 2 deletions(-) create mode 100644 .prettierrc create mode 100644 package.json create mode 100644 pnpm-lock.yaml diff --git a/.gitignore b/.gitignore index 6c994ac..8c7ecf5 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ .cache/** *_original browsers +node_modules # ---> TeX ## Core latex/pdflatex auxiliary files: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 67129da..357590c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -68,13 +68,13 @@ repos: - id: check-gitlab-ci - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.2.5" + rev: "v3.3.0" hooks: - id: prettier exclude_types: [json] additional_dependencies: [ # https://www.npmjs.com/package/prettier - "prettier@3.2.5", + "prettier@3.3.1", # https://www.npmjs.com/package/@prettier/plugin-xml "@prettier/plugin-xml@3.4.1", # https://www.npmjs.com/package/prettier-plugin-toml diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/.prettierrc @@ -0,0 +1 @@ +{} diff --git a/package.json b/package.json new file mode 100644 index 0000000..8fd1296 --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "devDependencies": { + "@prettier/plugin-xml": "3.4.1", + "prettier": "3.3.1", + "prettier-plugin-toml": "2.0.1" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..1a883a0 --- /dev/null +++ b/pnpm-lock.yaml @@ -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: {}