Skip to content

chore: add prettier terraform formatting in markdown files #134

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 5 commits into from
Jan 27, 2024

Conversation

mafredri
Copy link
Member

This PR enables Terraform formatting in markdown files (via bun fmt). Since the prettier-plugin-terraform-formatter plugin doesn't register hcl we also rename all code-blocks to tf, atlernatively we could patch the plugin but I think this is fine.

  • chore: add prettier terraform formatting in markdown files
  • rename hcl codeblocks to tf to enable formatter
  • bun fmt
  • fix invalid tf
  • bun fmt

@mafredri mafredri self-assigned this Jan 27, 2024
@mafredri mafredri requested a review from matifali January 27, 2024 12:49
Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome 🎉

@matifali
Copy link
Member

Should we add a lint check to make sure there is no hcl codeblocks?

@mafredri
Copy link
Member Author

Should we add a lint check to make sure there is no hcl codeblocks?

That's a good idea 👍🏻

@mafredri mafredri merged commit 376c0ca into main Jan 27, 2024
@mafredri mafredri deleted the mafredri/prettier-tf-format branch January 27, 2024 13:02
phorcys420 pushed a commit to phorcys420-contrib/coder-modules that referenced this pull request Jan 28, 2024
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