Files
SubMiner/backlog/tasks/task-68 - Allow-trailing-commas-in-JSONC-config-parsing.md

1.6 KiB

id, title, status, assignee, created_date, updated_date, labels, dependencies, priority, ordinal
id title status assignee created_date updated_date labels dependencies priority ordinal
TASK-68 Allow trailing commas in JSONC config parsing Done
2026-02-18 10:13 2026-02-19 23:18
config
jsonc
medium 67000

Description

Permit trailing commas in config.jsonc parsing so normal JSONC edits do not fail strict reload/watcher startup.

Acceptance Criteria

  • #1 Config parser accepts trailing commas in JSONC objects/arrays
  • #2 Invalid malformed JSONC still fails strict reload
  • #3 Coverage added to prevent regression

Implementation Notes

Enabled allowTrailingComma: true in src/config/service.ts JSONC parse options while preserving strict parse error handling.

Added regression test accepts trailing commas in jsonc in src/config/config.test.ts.

Updated docs note in docs/configuration.md that JSONC config supports comments and trailing commas.

Validated with bun run build && bun run test:config:dist.

Final Summary

SubMiner now accepts trailing commas in config.jsonc by enabling JSONC parser trailing-comma support in the strict config load path. Strict reload behavior remains intact for malformed JSON/JSONC, and a regression test now covers trailing-comma acceptance. Documentation was updated accordingly.

Definition of Done

  • #1 Config test suite passes after parser change