14 lines
227 B
Bash
Executable File
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
|