diff --git a/common.sh b/common.sh index 54968e8..285acf3 100755 --- a/common.sh +++ b/common.sh @@ -97,6 +97,11 @@ for BINARY in "${NVIM_REQUIRED_BINARIES[@]}"; do check_binary "$BINARY" done +if ! command -v eslint >/dev/null 2>&1; then + npm install --global --prefix "${HOME}/.local" eslint +fi +check_binary eslint + if ! command -v luafmt >/dev/null 2>&1; then npm install --global --prefix "${HOME}/.local" lua-fmt fi