mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-13 21:05:25 +00: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:
parent
12c841b4d9
commit
5e082e4fb6
@ -1,5 +1,7 @@
|
|||||||
include ../defines.mk
|
include ../defines.mk
|
||||||
|
|
||||||
|
ESLINT ?= $(if $(shell command -v pve-eslint), pve-eslint, eslint)
|
||||||
|
|
||||||
IMAGES := \
|
IMAGES := \
|
||||||
images/icon-tape.svg \
|
images/icon-tape.svg \
|
||||||
images/icon-tape-drive.svg \
|
images/icon-tape-drive.svg \
|
||||||
@ -133,11 +135,11 @@ js/proxmox-backup-gui.js: .lint-incremental js OnlineHelpInfo.js ${JSSRC}
|
|||||||
|
|
||||||
.PHONY: check
|
.PHONY: check
|
||||||
check:
|
check:
|
||||||
eslint --strict ${JSSRC}
|
$(ESLINT) --strict ${JSSRC}
|
||||||
touch ".lint-incremental"
|
touch ".lint-incremental"
|
||||||
|
|
||||||
.lint-incremental: ${JSSRC}
|
.lint-incremental: ${JSSRC}
|
||||||
eslint $?
|
$(ESLINT) $?
|
||||||
touch "$@"
|
touch "$@"
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
Loading…
Reference in New Issue
Block a user