5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-01-06 13:18:00 +03:00

try using 'pve-eslint' if it exists

but fallback to 'eslint' otherwise

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [T: move into www/manager Makefile directly]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Dominik Csapak 2023-06-23 09:08:47 +02:00 committed by Thomas Lamprecht
parent 12c841b4d9
commit 5e082e4fb6

View File

@ -1,5 +1,7 @@
include ../defines.mk
ESLINT ?= $(if $(shell command -v pve-eslint), pve-eslint, eslint)
IMAGES := \
images/icon-tape.svg \
images/icon-tape-drive.svg \
@ -133,11 +135,11 @@ js/proxmox-backup-gui.js: .lint-incremental js OnlineHelpInfo.js ${JSSRC}
.PHONY: check
check:
eslint --strict ${JSSRC}
$(ESLINT) --strict ${JSSRC}
touch ".lint-incremental"
.lint-incremental: ${JSSRC}
eslint $?
$(ESLINT) $?
touch "$@"
.PHONY: clean