119 current 2024-05-10 23:44:23 24.05.20240419.5c24cf2 6.6.28 *

This commit is contained in:
sadanslargehole 2024-05-10 23:44:33 -04:00
parent f531235399
commit 1fde33c6f6
No known key found for this signature in database
GPG key ID: B2E2F4A5161A7800

View file

@ -122,15 +122,23 @@ in
# echo "Hello, ${config.home.username}!" # echo "Hello, ${config.home.username}!"
# '') # '')
(pkgs.writeShellScriptBin "__eslint_default_config" '' (pkgs.writeShellScriptBin "__eslint_default_config" ''
if [[ -e ./.eslintrc.json ]]; then
if [[ -e ./.eslintrc.json ]]; then eslint_d $@
eslint_d $@ exit $?
exit $? else
else eslint_d --config /home/${config.home.username}/.config/.eslintrc.json $@
eslint_d --config /home/${config.home.username}/.config/.eslintrc.json $@ exit $?
exit $? fi
fi '')
(pkgs.writeShellScriptBin "install_eslint" ''
pkgs=("@stylistic/eslint-plugin" "@typescript-eslint/eslint-plugin")
if [[ -z $1 ]]; then
echo please specify npm, pnpm, or yarn
exit 1
fi
for i in "''${pkgs[@]}"; do
`$1 i $i`
done
'') '')
]; ];
# Home Manager is pretty good at managing dotfiles. The primary way to manage # Home Manager is pretty good at managing dotfiles. The primary way to manage
@ -142,8 +150,8 @@ in
target = "./.config/kitty"; target = "./.config/kitty";
}; };
eslint_d_config = { eslint_d_config = {
source = ../../dotfiles/eslintrc.json; source = ../../dotfiles/eslintrc.json;
target = "./.config/.eslintrc.json"; target = "./.config/.eslintrc.json";
}; };
gh = { gh = {
recursive = true; recursive = true;