diff options
| author | seth <[email protected]> | 2024-02-13 01:36:30 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2024-02-13 01:36:30 -0500 |
| commit | a48c12b23ee697f86f951c930f78b2c6647b9c7a (patch) | |
| tree | 970468a8ad0f8b4243258f9a837c8ad077b4be08 /flake.nix | |
| parent | 6a1395c129fdb01a93f737b15b9bc51565eea6bd (diff) | |
nix: use treefmt wrapper in pre-commit
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -43,12 +43,20 @@ programs = enableAll [ "deadnix" "nixfmt" "prettier" ]; settings.global = { - excludes = [ "./node_modules/*" "flake.lock" "pnpm-lock.yaml" ]; + excludes = [ + "./node_modules/*" + "./dist/*" + "./.astro/*" + "flake.lock" + "pnpm-lock.yaml" + ]; }; }; - pre-commit = { - settings.hooks = enableAll [ + pre-commit.settings = { + settings.treefmt.package = config.treefmt.build.wrapper; + + hooks = enableAll [ "actionlint" "eclint" "eslint" |
