diff --git a/Home.md b/Home.md index 0cd7043..0cfdee7 100644 --- a/Home.md +++ b/Home.md @@ -147,18 +147,10 @@ Note that Prettier also supports some other languages through the use of plugins ``` [formatter.terraform] -# Terraform fmt only takes one file at the time so we create a wrapper. -# See https://github.com/numtide/treefmt/issues/97 -command = "/bin/sh" -options = [ - "-euc", - """ -for f in "$@"; do - terraform fmt "$f" -done - """, - "--", -] +# Careful, only terraform 1.3.0 or later accept a list of files. +# see https://github.com/numtide/treefmt/issues/97 +command = "terraform" +options = ["fmt"] includes = ["*.tf"] ```