From 53da2cfcf76e46cdb724ea739b7d496209dae22f Mon Sep 17 00:00:00 2001 From: Michael Manganiello Date: Mon, 1 Sep 2025 15:07:06 -0300 Subject: [PATCH] misc: Add prettier plugin to sort imports Automate import sorting in frontend code using Prettier plugin, within Trunk setup. --- .trunk/configs/.prettierrc.yaml | 1 + .trunk/trunk.yaml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .trunk/configs/.prettierrc.yaml diff --git a/.trunk/configs/.prettierrc.yaml b/.trunk/configs/.prettierrc.yaml new file mode 100644 index 000000000..b636a99f2 --- /dev/null +++ b/.trunk/configs/.prettierrc.yaml @@ -0,0 +1 @@ +plugins: ["@trivago/prettier-plugin-sort-imports"] diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index a61232ce3..105e504db 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -32,7 +32,10 @@ lint: - mypy@1.17.0 - osv-scanner@2.0.3 - oxipng@9.1.5 - - prettier@3.6.2 + - prettier@3.6.2: + packages: + - "@trivago/prettier-plugin-sort-imports@5.2.2" + - "@vue/compiler-sfc@3.5.13" - ruff@0.12.4 - shellcheck@0.10.0 - shfmt@3.6.0