Skip to content

js: Enforce uniform formatting #1574

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

Merged
merged 4 commits into from
Dec 18, 2024
Merged

js: Enforce uniform formatting #1574

merged 4 commits into from
Dec 18, 2024

Conversation

svix-jplatte
Copy link
Member

We're going to commit more generated code soon that needs auto-formatting to look good. Seems like we didn't have auto-formatting set up correctly so we had some overly long lines and a mix of two-space and four-space indentation. This PR fixes that, and updates CI to error on unformatted files.

@svix-jplatte svix-jplatte marked this pull request as ready for review December 18, 2024 09:48
@svix-jplatte svix-jplatte requested a review from a team as a code owner December 18, 2024 09:48
@svix-jplatte svix-jplatte merged commit 9d8d308 into main Dec 18, 2024
2 checks passed
@svix-jplatte svix-jplatte deleted the jplatte/js-fmt branch December 18, 2024 14:50
svix-jplatte added a commit that referenced this pull request Dec 18, 2024
Like #1574. We want to replace
some files with auto-generated ones, to reduce the diff and make it
readable once it's generated, we should apply auto-formatting at all
times.

I tried setting up a gradle plugin for this, but unfortunately things
are a bit broken for me locally, so that didn't work out.
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