chore(components): add prettier config + format:check CI gate (#1050)#4
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1050 (child of the prettier-gate sweep #1042).
@dignetwork/componentshad no prettier gate; adds the ecosystem-standard config + aformat:checkCI gate (§2.4a Format gate).Changes
.prettierrc.json— byte-identical to the reference repoDIG-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.json—prettier ^3.3.3devDep;format(prettier --write .) +format:check(prettier --check .) scripts; version 0.1.5 → 0.1.6 (patch)..github/workflows/ci.yml—npm run format:checkstep inbuild-test(before typecheck, mirroring dwr's ordering).prettier --writereformat (no behavior change;publish-npm.ymlhad a harmless quote-style normalization).Verification (local, all green)
format:checkpass ·typecheckpass ·buildpass (ESM+CJS+d.ts) · coverage 136/136 tests, 97.17% lines (floor 80).Follow-up (post-merge): flip
format:checkto a required status check (§3.6b); record the canonical.prettierrcin thecanonicalskill.Co-Authored-By: Claude noreply@anthropic.com
Generated by Claude Code