From c18626334f9128a258d638179953cb3fc86a93e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Szak=C3=A1llas?= Date: Sat, 26 Oct 2024 22:43:18 +0200 Subject: [PATCH] add linters --- README.md | 6 ++++-- devenv.nix | 9 ++++++++- modules/home/default/gh.zsh | 2 ++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8869600..dd682e0 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,13 @@ My personal dotfiles as a flake. Structure: -``` +```text ├── hosts # host configurations ├── lib # library functions -├── modules +├── modules │   ├── darwin # reusable modules for macOS +│   ├── nixos # reusable modules for nixOS +│   ├── system # reusable modules for unix-like systems (nixOS, darwin, etc.) │   └── home # reusable modules for home manager ├── users # user configurations (can be shared across hosts) └── vendor # vendored flake dependencies in git submodules diff --git a/devenv.nix b/devenv.nix index f1046b4..df79ebc 100644 --- a/devenv.nix +++ b/devenv.nix @@ -1,4 +1,11 @@ { ... }: { languages.nix.enable = true; - pre-commit.hooks.nixfmt-classic.enable = true; + pre-commit.hooks = { + nixfmt-classic.enable = true; + markdownlint = { + enable = true; + settings.configuration = { MD013.line_length = 120; }; + }; + shellcheck.enable = true; + }; } diff --git a/modules/home/default/gh.zsh b/modules/home/default/gh.zsh index 43a3bd3..91fdb88 100644 --- a/modules/home/default/gh.zsh +++ b/modules/home/default/gh.zsh @@ -1,3 +1,5 @@ +# shellcheck disable=all + ghcs() { FUNCNAME="$funcstack[1]" TARGET="shell"