ljharb / ljharb/json-stable-stringify
Space before colon `:`?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 79
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
I want to add a pre-commit hook to sort Contents.json files generated for Xcode (or by xcode), and in its flavor of json there is a space before colon.
To reduce diff, I'd like to follow xcode's rules.
Let me know, if that is possible? Thank you!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name any files, tests, or entry points. Start by locating the JSON formatting and stringification logic, then determine how a configurable space before colons could match Xcode's Contents.json output. Done means the requested formatting is supported without increasing unrelated diffs and its behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100