From 557605ca931ac276630247432be6b55717f87e9c Mon Sep 17 00:00:00 2001 From: Le <6251863+ltyu@users.noreply.github.com> Date: Thu, 12 Feb 2026 12:39:48 -0500 Subject: [PATCH] fix: add --no-error-on-unmatched-pattern to oxfmt md rule in lint-staged oxfmt supports markdown but skips files in .prettierignore (e.g. .changeset/). When the only staged .md file is ignored, oxfmt exits with an error. --- .lintstagedrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.lintstagedrc b/.lintstagedrc index 5ee1f3e1038..cffbc19110c 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -1,7 +1,7 @@ { "*.js": ["oxlint", "oxfmt --write"], "*.ts": ["oxlint", "oxfmt --write"], - "*.md": "oxfmt --write", + "*.md": "oxfmt --no-error-on-unmatched-pattern --write", "*.sol": "prettier --write", "*.json": "oxfmt --write" }