120 current 2024-05-10 23:48:17 24.05.20240419.5c24cf2 6.6.28 *

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

View file

@ -131,13 +131,15 @@ in
fi fi
'') '')
(pkgs.writeShellScriptBin "install_eslint" '' (pkgs.writeShellScriptBin "install_eslint" ''
set -x
cp /home/${config.home.username}/.config/.eslintrc.json .
pkgs=("@stylistic/eslint-plugin" "@typescript-eslint/eslint-plugin") pkgs=("@stylistic/eslint-plugin" "@typescript-eslint/eslint-plugin")
if [[ -z $1 ]]; then if [[ -z $1 ]]; then
echo please specify npm, pnpm, or yarn echo please specify npm, pnpm, or yarn
exit 1 exit 1
fi fi
for i in "''${pkgs[@]}"; do for i in "''${pkgs[@]}"; do
`$1 i $i` `$1 i -D $i`
done done
'') '')
]; ];