Skip to content

chore(oxfmt): format rulesync.jsonc and disable trailing commas for JSON/JSONC#1549

Merged
dyoshikawa merged 1 commit intomainfrom
chore/oxfmt-format-rulesync-jsonc
Apr 23, 2026
Merged

chore(oxfmt): format rulesync.jsonc and disable trailing commas for JSON/JSONC#1549
dyoshikawa merged 1 commit intomainfrom
chore/oxfmt-format-rulesync-jsonc

Conversation

@dyoshikawa
Copy link
Copy Markdown
Owner

Summary

  • Remove rulesync.jsonc from ignorePatterns in .oxfmtrc.json so it is covered by oxfmt
  • Add an overrides entry targeting **/*.json and **/*.jsonc that sets trailingComma to "none", since trailing commas are not valid JSON
  • Apply the resulting formatting to rulesync.jsonc (trailing commas removed)

Test plan

  • pnpm cicheck passes locally (fmt:check, oxlint, eslint, typecheck, tests, cspell, secretlint)
  • pnpm exec oxfmt --check rulesync.jsonc reports no format issues after the change

🤖 Generated with Claude Code

…SON/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) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 23, 2026 00:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates oxfmt configuration to ensure JSON/JSONC files are formatted without trailing commas, and applies that formatting to rulesync.jsonc.

Changes:

  • Removes rulesync.jsonc from .oxfmtrc.json ignorePatterns so it’s formatted by oxfmt.
  • Adds an overrides rule for **/*.json and **/*.jsonc setting trailingComma to "none".
  • Re-formats rulesync.jsonc accordingly (removes trailing commas).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
rulesync.jsonc Removes trailing commas to comply with the new JSON/JSONC formatting override.
.oxfmtrc.json Enables formatting for rulesync.jsonc and enforces trailingComma: "none" for JSON/JSONC via overrides.

@dyoshikawa dyoshikawa merged commit 8902d61 into main Apr 23, 2026
14 checks passed
@dyoshikawa dyoshikawa deleted the chore/oxfmt-format-rulesync-jsonc branch April 23, 2026 01:24
@github-actions github-actions Bot mentioned this pull request Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants