Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Space before colon :? #11

Open
Scvairy opened this issue Jan 22, 2024 · 1 comment
Open

Space before colon :? #11

Scvairy opened this issue Jan 22, 2024 · 1 comment

Comments

@Scvairy
Copy link

Scvairy commented Jan 22, 2024

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!

@ljharb
Copy link
Owner

ljharb commented Jan 22, 2024

That's very bizarre and doesn't match any JSON examples or tooling I've ever used before.

We could certainly do it with some kind of callback option that gets the key and the value and returns the formatted pair (unindented), but that's a lot of complexity to add for a feature this uncommonly needed.

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

No branches or pull requests

2 participants