mirror of
https://github.com/sadan4/dotfiles.git
synced 2024-11-16 23:04:39 -05:00
120 current 2024-05-10 23:48:17 24.05.20240419.5c24cf2 6.6.28 *
This commit is contained in:
parent
1fde33c6f6
commit
42151f742c
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue