Files
dotfiles/scripts/run-lint.sh
T
2024-04-02 19:08:20 -04:00

12 lines
214 B
Bash
Executable File

#!/bin/bash
if [ -f "package-lock.json" ]; then
npm run lint
elif [ -f "yarn.lock" ]; then
yarn lint
elif [ -f "pnpm-lock.yaml"]
pnpm run lint
else
echo "Neither package-lock.json nor yarn.lock exists"
fi