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,7 +122,6 @@ in
# echo "Hello, ${config.home.username}!"
# '')
(pkgs.writeShellScriptBin "__eslint_default_config" ''
if [[ -e ./.eslintrc.json ]]; then
eslint_d $@
exit $?
@ -130,7 +129,16 @@ in
eslint_d --config /home/${config.home.username}/.config/.eslintrc.json $@
exit $?
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