From 78c8f0527ccb467f0e3b87f10104decf50a12684 Mon Sep 17 00:00:00 2001 From: dyoshikawa Date: Wed, 22 Apr 2026 17:20:58 -0700 Subject: [PATCH] chore(oxfmt): format rulesync.jsonc and disable trailing commas for JSON/JSONC Remove rulesync.jsonc from ignorePatterns so it's covered by oxfmt, and add an overrides entry for **/*.json and **/*.jsonc that sets trailingComma to "none" since trailing commas are not valid JSON. Co-Authored-By: Claude Opus 4.7 (1M context) --- .oxfmtrc.json | 9 ++++++++- rulesync.jsonc | 12 ++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.oxfmtrc.json b/.oxfmtrc.json index 4920f0d4..5e5f8271 100644 --- a/.oxfmtrc.json +++ b/.oxfmtrc.json @@ -21,7 +21,14 @@ ".serena/project.yml", ".github/copilot-instructions.md", ".github/instructions/**", - "rulesync.jsonc", "rulesync.local.jsonc" + ], + "overrides": [ + { + "files": ["**/*.json", "**/*.jsonc"], + "options": { + "trailingComma": "none" + } + } ] } diff --git a/rulesync.jsonc b/rulesync.jsonc index 68b356e5..047f769b 100644 --- a/rulesync.jsonc +++ b/rulesync.jsonc @@ -7,32 +7,32 @@ "copilot": { "rules": { "ruleDiscoveryMode": "explicit", - "includeLocalRoot": false, + "includeLocalRoot": false }, "commands": true, "mcp": false, "subagents": true, - "skills": true, + "skills": true }, "claudecode": { "rules": true, "commands": true, "mcp": true, "subagents": true, - "skills": true, + "skills": true }, "opencode": { "rules": true, "commands": true, "mcp": true, "subagents": true, - "skills": true, + "skills": true }, "takt": { "rules": true, "commands": true, "subagents": true, - "skills": true, + "skills": true } }, @@ -50,5 +50,5 @@ // When true (default), `rulesync gitignore` only emits entries for the // tools listed in `targets`. - "gitignoreTargetsOnly": true, + "gitignoreTargetsOnly": true }