Files
dotfiles/scripts/run-lint.sh
T
2025-01-02 09:51:12 -05:00

14 lines
227 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
elif [ -f "bun.lockb" ]; then
bun run lint
else
echo "No lockfile :("
fi