dotfiles/common/users/homeModules/scripts/install_eslint.sh

10 lines
231 B
Bash
Raw Normal View History

2024-11-26 17:01:58 -05:00
set -x
cp $HOME/.config/.eslintrc.json .
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 -D $i`
done