hashicorp/hcl

Support tabs in `nomad fmt`

Opened this issue · 1 comments

Proposal

nomad fmt should support using tabs for indentation. Using two spaces is less accessible. Meanwhile, by using tabs, each team member can choose the visual level of indentation based on the file complexity and their visual needs.

This can be enabled via a cli flag nomad fmt -tabs or by respecting the .editorconfig

@brandonkal the nomad fmt command just wraps the formatter in the HCL2 library. I'm going to move this issue there.