dotfiles/common/users/homeModules/scripts/install_eslint.sh
2024-11-26 17:01:58 -05:00

10 lines
No EOL
231 B
Bash

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