about summary refs log tree commit diff
path: root/treefmt.toml
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2022-02-16 02:15:52 +0300
committerAzat Bahawi <azat@bahawi.net>2022-02-16 02:15:52 +0300
commit13964faa53b09924bdd27328311ba27457b0b61d (patch)
tree73dcca227f3084fd1fa09fd4d3323544b61218ea /treefmt.toml
parentmeh (diff)
I hate the Antichrist
Diffstat (limited to '')
-rw-r--r--treefmt.toml24
1 files changed, 24 insertions, 0 deletions
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"]

Consider giving Nix/NixOS a try! <3