From 38673686742859fdb0eaffb04d27dcea2a1d8076 Mon Sep 17 00:00:00 2001 From: Eli <88557639+lishaduck@users.noreply.github.com> Date: Sat, 1 Aug 2026 12:57:15 -0500 Subject: [PATCH] chore: use Prettier experimental CLI for formatting --- .helix/languages.toml | 49 ++++++++++++++++++++++++++++++++++++------- lint-staged.config.ts | 2 +- 2 files changed, 43 insertions(+), 8 deletions(-) diff --git a/.helix/languages.toml b/.helix/languages.toml index 7d5812119c..7e73c207da 100644 --- a/.helix/languages.toml +++ b/.helix/languages.toml @@ -5,34 +5,69 @@ [[language]] name = "javascript" auto-format = true -formatter = { command = "npx", args = ["prettier", "--parser", "babel"] } +formatter = { command = "npx", args = [ + "prettier", + "--experimental-cli", + "--parser", + "babel" +] } [[language]] name = "jsx" auto-format = true -formatter = { command = "npx", args = ["prettier", "--parser", "babel"] } +formatter = { command = "npx", args = [ + "prettier", + "--experimental-cli", + "--parser", + "babel" +] } [[language]] name = "typescript" auto-format = true -formatter = { command = "npx", args = ["prettier", "--parser", "typescript"] } +formatter = { command = "npx", args = [ + "prettier", + "--experimental-cli", + "--parser", + "typescript" +] } [[language]] name = "tsx" auto-format = true -formatter = { command = "npx", args = ["prettier", "--parser", "typescript"] } +formatter = { command = "npx", args = [ + "prettier", + "--experimental-cli", + "--parser", + "typescript" +] } [[language]] name = "json" auto-format = true -formatter = { command = "npx", args = ["prettier", "--parser", "json"] } +formatter = { command = "npx", args = [ + "prettier", + "--experimental-cli", + "--parser", + "json" +] } [[language]] name = "markdown" auto-format = true -formatter = { command = "npx", args = ["prettier", "--parser", "markdown"] } +formatter = { command = "npx", args = [ + "prettier", + "--experimental-cli", + "--parser", + "markdown" +] } [[language]] name = "yaml" auto-format = true -formatter = { command = "npx", args = ["prettier", "--parser", "yaml"] } +formatter = { command = "npx", args = [ + "prettier", + "--experimental-cli", + "--parser", + "yaml" +] } diff --git a/lint-staged.config.ts b/lint-staged.config.ts index 07603a5a55..48f0aa94c3 100644 --- a/lint-staged.config.ts +++ b/lint-staged.config.ts @@ -1,4 +1,4 @@ export default { - "*": "prettier --ignore-unknown --write", + "*": "prettier --experimental-cli --ignore-unknown --write", ".changeset/*.md": "node scripts/validate-changesets.ts", };