Skip to content

chore(components): add prettier config + format:check CI gate (#1050)#4

Merged
MichaelTaylor3d merged 4 commits into
mainfrom
chore/prettier-gate
Jul 19, 2026
Merged

chore(components): add prettier config + format:check CI gate (#1050)#4
MichaelTaylor3d merged 4 commits into
mainfrom
chore/prettier-gate

Conversation

@MichaelTaylor3d

Copy link
Copy Markdown
Contributor

Closes #1050 (child of the prettier-gate sweep #1042). @dignetwork/components had no prettier gate; adds the ecosystem-standard config + a format:check CI gate (§2.4a Format gate).

Changes

  • .prettierrc.json — byte-identical to the reference repo DIG-Network/dig-web-resolver: {"printWidth":110,"singleQuote":false,"trailingComma":"all","semi":true}.
  • .prettierignore — applicable subset of dwr's: dist, coverage, package-lock.json, CHANGELOG.md.
  • package.jsonprettier ^3.3.3 devDep; format (prettier --write .) + format:check (prettier --check .) scripts; version 0.1.5 → 0.1.6 (patch).
  • .github/workflows/ci.ymlnpm run format:check step in build-test (before typecheck, mirroring dwr's ordering).
  • Repo-wide prettier --write reformat (no behavior change; publish-npm.yml had a harmless quote-style normalization).

Verification (local, all green)

format:check pass · typecheck pass · build pass (ESM+CJS+d.ts) · coverage 136/136 tests, 97.17% lines (floor 80).

Follow-up (post-merge): flip format:check to a required status check (§3.6b); record the canonical .prettierrc in the canonical skill.

Co-Authored-By: Claude noreply@anthropic.com


Generated by Claude Code

MichaelTaylor3d and others added 4 commits July 19, 2026 01:23
…050)

Co-Authored-By: Claude <noreply@anthropic.com>
Adopt the ecosystem-canonical prettier config byte-identical to
dig-web-resolver (printWidth 110, double quotes, trailing commas,
semicolons) so formatting matches the rest of the DIG frontend fleet.

Co-Authored-By: Claude <noreply@anthropic.com>
Apply prettier --write across the repo (docs, tests, source, workflow
YAML) to establish a clean baseline before the format:check gate lands.

Co-Authored-By: Claude <noreply@anthropic.com>
Wire prettier as a devDependency with format/format:check scripts, and
gate the build-test CI job on npm run format:check so an unformatted
PR fails the same way other DIG frontend repos (e.g. dig-web-resolver)
do (CLAUDE.md §2.4a Format gate).

Patch bump: chore/CI addition, no runtime behavior change.

Co-Authored-By: Claude <noreply@anthropic.com>
@MichaelTaylor3d
MichaelTaylor3d merged commit bf9f8fe into main Jul 19, 2026
8 checks passed
@MichaelTaylor3d
MichaelTaylor3d deleted the chore/prettier-gate branch July 19, 2026 01:29
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.

1 participant