From 13964faa53b09924bdd27328311ba27457b0b61d Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Wed, 16 Feb 2022 02:15:52 +0300 Subject: I hate the Antichrist --- treefmt.toml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 treefmt.toml (limited to 'treefmt.toml') diff --git a/treefmt.toml b/treefmt.toml new file mode 100644 index 0000000..ff039ef --- /dev/null +++ b/treefmt.toml @@ -0,0 +1,24 @@ +[formatter.haskell] +command = "" +includes = ["*.hs"] + +[formatter.shell] +command = "/bin/sh" +options = [ + "-euc", + """ +shellcheck "$@" +shfmt -s -w "$@" + """, + "--", +] +includes = ["*.sh"] + +[formatter.prettier] +command = "prettier" +options = ["--write"] +includes = ["*.yaml"] + +[formatter.nix] +command = "nixfmt" +includes = ["*.nix"] -- cgit 1.4.1