1
0
Fork 0
forked from Mirrors/gomuks
nyxmuks/.pre-commit-eslint.sh
2024-12-01 23:49:30 +02:00

6 lines
136 B
Bash
Executable file

#!/usr/bin/env bash
cd web > /dev/null
if [[ -f "./node_modules/.bin/eslint" ]]; then
ARGS=("$@")
eslint --fix ${ARGS[@]/#web\// }
fi