configure prettierrc & add prettier-plugin-sh

This commit is contained in:
Aminda Suomalainen 2024-06-11 20:53:57 +03:00
parent 4358496382
commit 964b51cfd2
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
4 changed files with 55 additions and 1 deletions

View File

@ -1 +1,2 @@
associations
*.json

View File

@ -1 +1,8 @@
{}
{
"plugins": [
"@prettier/plugin-xml",
"prettier-plugin-toml",
"prettier-plugin-sh"
],
"overrides": [{ "files": ".prettierrc", "options": { "parser": "json" } }]
}

View File

@ -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"
}
}

View File

@ -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: {}