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

Standardizes indentation for JSON files #3291

Merged
merged 1 commit into from
Jul 10, 2023
Merged

Conversation

misaugstad
Copy link
Member

Half our our translations JSON files had 2 space indenting and half of them had 4 space indenting somehow. This led to weird issues with IDEs auto-formatting. I've just standardized it to 4-space indenting to make this more clear going forward.

Things to check before submitting the PR
  • I've written a descriptive PR title.

@misaugstad misaugstad self-assigned this Jul 10, 2023
@misaugstad misaugstad merged commit a10727d into develop Jul 10, 2023
@misaugstad misaugstad deleted the reformat-json-files branch July 10, 2023 22:48
@jonfroehlich
Copy link
Member

Ha, I use 2 space indenting in VSCode 😂

But will defer to you since you're the lead! And I don't commit anything anyway.

@misaugstad
Copy link
Member Author

It seems like there is no real convention, unfortunately! I went with 4 space indents since that's what we're using in JavaScript, and they are basically just JavaScript objects 🤷

@jonfroehlich
Copy link
Member

All good. I just find 4-space indentation quickly starts to balloon horizontally.

@misaugstad misaugstad mentioned this pull request Jul 21, 2023
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.

2 participants