From 964b51cfd23d531b43bf0de5c28a246854b08136 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 11 Jun 2024 20:53:57 +0300 Subject: [PATCH] configure prettierrc & add prettier-plugin-sh --- .prettierignore | 1 + .prettierrc | 9 ++++++++- package.json | 1 + pnpm-lock.yaml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 55 insertions(+), 1 deletion(-) diff --git a/.prettierignore b/.prettierignore index 1dc34d4..edf50d1 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ associations +*.json diff --git a/.prettierrc b/.prettierrc index 0967ef4..5f97869 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1 +1,8 @@ -{} +{ + "plugins": [ + "@prettier/plugin-xml", + "prettier-plugin-toml", + "prettier-plugin-sh" + ], + "overrides": [{ "files": ".prettierrc", "options": { "parser": "json" } }] +} diff --git a/package.json b/package.json index 45a9700..88a294a 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "devDependencies": { "@prettier/plugin-xml": "3.4.1", "prettier": "3.3.2", + "prettier-plugin-sh": "0.14.0", "prettier-plugin-toml": "2.0.1" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 04aa7d9..9b8133c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,6 +13,9 @@ importers: prettier: specifier: 3.3.2 version: 3.3.2 + prettier-plugin-sh: + specifier: 0.14.0 + version: 0.14.0(prettier@3.3.2) prettier-plugin-toml: specifier: 2.0.1 version: 2.0.1(prettier@3.3.2) @@ -50,6 +53,21 @@ packages: integrity: sha512-wy3mC1x4ye+O+QkEinVJkPf5u2vsrDIYW9G7ZuwFl6v/Yu0LwUuT2POsb+NUWApebyxfkQq6+yDfRExbnI5rcw==, } + mvdan-sh@0.10.1: + resolution: + { + 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-plugin-toml@2.0.1: resolution: { @@ -73,6 +91,19 @@ packages: integrity: sha512-tlbJqcMHnPKI9zSrystikWKwHkBqu2a/Sgw01h3zFjvYrMxEDYHzzoMZnUrbIfpTFEsoRnnviOXNCzFiSc54Qw==, } + sh-syntax@0.4.2: + resolution: + { + integrity: sha512-/l2UZ5fhGZLVZa16XQM9/Vq/hezGGbdHeVEA01uWjOL1+7Ek/gt6FquW0iKKws4a9AYPYvlz6RyVvjh3JxOteg==, + } + engines: { node: ">=16.0.0" } + + tslib@2.6.3: + resolution: + { + integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==, + } + snapshots: "@prettier/plugin-xml@3.4.1(prettier@3.3.2)": dependencies: @@ -93,6 +124,14 @@ snapshots: dependencies: regexp-to-ast: 0.5.0 + mvdan-sh@0.10.1: {} + + prettier-plugin-sh@0.14.0(prettier@3.3.2): + dependencies: + mvdan-sh: 0.10.1 + prettier: 3.3.2 + sh-syntax: 0.4.2 + prettier-plugin-toml@2.0.1(prettier@3.3.2): dependencies: "@taplo/lib": 0.4.0-alpha.2 @@ -101,3 +140,9 @@ snapshots: prettier@3.3.2: {} regexp-to-ast@0.5.0: {} + + sh-syntax@0.4.2: + dependencies: + tslib: 2.6.3 + + tslib@2.6.3: {}