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

chore: auto-format .proto files with buf #227

Merged
merged 1 commit into from
Aug 29, 2024
Merged

chore: auto-format .proto files with buf #227

merged 1 commit into from
Aug 29, 2024

Conversation

EvanHahn
Copy link
Contributor

This change should have no user impact.

buf format can auto-format .proto files, similar to Prettier. This change:

  • Auto-formats our .proto files with buf format.
  • Adds npm run format:buf to auto-format .proto files.
  • Adds npm run lint:buf-format to check formatting of .proto files.
  • Updates npm run format to call both npm run format:buf and Prettier.
  • Updates npm run lint to call both npm run lint:buf-format and Prettier.

This change should have no user impact.

`buf format` can auto-format .proto files, similar to Prettier. This
change:

- Auto-formats our .proto files with `buf format`.
- Adds `npm run format:buf` to auto-format .proto files.
- Adds `npm run lint:buf-format` to check formatting of .proto files.
- Updates `npm run format` to call both `npm run format:buf` and
  Prettier.
- Updates `npm run lint` to call both `npm run lint:buf-format` and
  Prettier.
@EvanHahn EvanHahn requested a review from tomasciccola August 28, 2024 20:12
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