From 9503745ae6381e6316481e344c7054f036c7fb69 Mon Sep 17 00:00:00 2001 From: Stefano Date: Sat, 19 Nov 2022 12:43:28 +0000 Subject: [PATCH] Remove types_or from shellcheck This made the pre-commit configuration work with shell files. Tested on macOS 10.15.7 (Intel i7) and 12.6 (Apple M1 Max) using both bash and zsh --- modules/hooks.nix | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/modules/hooks.nix b/modules/hooks.nix index c5816ca2..45e2fe6e 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -406,16 +406,6 @@ in name = "shellcheck"; description = "Format shell files."; types = [ "shell" ]; - types_or = - # based on `goodShells` in https://github.com/koalaman/shellcheck/blob/master/src/ShellCheck/Parser.hs - [ - "sh" - "ash" - "bash" - "bats" - "dash" - "ksh" - ]; entry = "${tools.shellcheck}/bin/shellcheck"; }; stylua =