fix: format .prettierrc and the OpenCode shellcheck plugin with Prettier #163

Closed
opened 2026-10-28 22:27:21 +01:00 by motoko · 0 comments
Collaborator

In a repository upgraded to 457795c, prettier --check with the shipped
.prettierrc (proseWrap: always, printWidth: 72) fails on two files
that Agent Foundry provides:

  • .opencode/plugins/shellcheck.js: the execFile(...) call and the
    const report = ... line exceed the 72-column print width.
  • .prettierrc: Prettier wants a trailing comma after the last key.

A project that keeps its tracked files Prettier-clean either edits these
two files, which then conflict at the next upgrade, or lives with the
failure. Running prettier --write on both at the source fixes it.

In a repository upgraded to 457795c, `prettier --check` with the shipped `.prettierrc` (`proseWrap: always`, `printWidth: 72`) fails on two files that Agent Foundry provides: - `.opencode/plugins/shellcheck.js`: the `execFile(...)` call and the `const report = ...` line exceed the 72-column print width. - `.prettierrc`: Prettier wants a trailing comma after the last key. A project that keeps its tracked files Prettier-clean either edits these two files, which then conflict at the next upgrade, or lives with the failure. Running `prettier --write` on both at the source fixes it.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
claudiomaradonna/agent-foundry#163
No description provided.