mirror of
https://github.com/HariSekhon/DevOps-Bash-tools.git
synced 2025-02-06 09:28:21 +00:00
updated check_javascript_eslint.sh
This commit is contained in:
parent
eb9fa7423c
commit
ac0e138a7b
@ -45,6 +45,11 @@ section "E s L i n t"
|
||||
|
||||
start_time="$(start_timer)"
|
||||
|
||||
if ! type -P eslint &>/dev/null &&
|
||||
type -P npm; then
|
||||
npm install eslint
|
||||
fi
|
||||
|
||||
if type -P eslint &>/dev/null; then
|
||||
type -P eslint
|
||||
eslint --version
|
||||
|
Loading…
x
Reference in New Issue
Block a user