Skip to content

chore: prettier-ignore the hand-compacted settings files - #5

Merged
roadhero merged 1 commit into
mainfrom
chore/prettierignore-settings
Sep 12, 2026
Merged

roadhero merged 1 commit into
mainfrom
chore/prettierignore-settings

Conversation

@roadhero

Copy link
Copy Markdown
Owner

Summary

hooks/format.sh runs prettier --write on JSON, but settings.json and settings2.json are hand-compacted on purpose (permission allow-lists grouped by stack on single lines). Editing either with the Edit/Write tool triggered a full-file prettier reformat, turning a one-line change into an unreviewable ~200-line diff.

Add a .prettierignore listing those two files. Verified: prettier honors it even for an explicitly-passed path, so the format hook is now a no-op on them; Markdown and real code in consuming repos are still formatted. Prettier is not part of the §19.3 gate, so nothing that ships changes.

Repo-only, text/config change (no version bump, no install impact); noted in STRUCTURE.md's repo-only list.

Test plan

  • prettier --write settings.json and the format hook via a PostToolUse payload both leave the file byte-identical
  • jq empty settings.json settings2.json still valid
  • CI gate green on ubuntu-latest

hooks/format.sh runs prettier on JSON, but settings.json and settings2.json are
hand-compacted on purpose (stack-grouped allow-lists on single lines). Editing
either with the Edit/Write tool triggered a full-file reformat. Add a
.prettierignore so the format hook leaves them alone; prettier still formats
everything else. Prettier is not part of the quality gate, so nothing else changes.
@coderabbitai

coderabbitai Bot commented Sep 12, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 26 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: eb95b8ce-bc08-4f1d-9278-9a20c8a62c42

📥 Commits

Reviewing files that changed from the base of the PR and between ac40387 and 6cd7d11.

📒 Files selected for processing (2)
  • .prettierignore
  • STRUCTURE.md

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@roadhero
roadhero merged commit 8c8732d into main Sep 12, 2026
2 checks passed
@roadhero
roadhero deleted the chore/prettierignore-settings branch September 12, 2026 01:44
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