diff --git a/debian/control b/debian/control index 700ac22..36d800c 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: web Priority: optional Maintainer: Proxmox Support Team Build-Depends: debhelper (>= 10~), - pve-eslint, + pve-eslint (>= 7.12.1-1), Standards-Version: 3.9.8 Homepage: http://www.proxmox.com diff --git a/src/Makefile b/src/Makefile index 2844841..324e755 100644 --- a/src/Makefile +++ b/src/Makefile @@ -65,12 +65,16 @@ JSSRC= \ all: ${SUBDIRS} set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i; done +.lint-incremental: ${JSSRC} + eslint $? + touch "$@" + .PHONY: lint check: lint lint: ${JSSRC} - eslint ${JSSRC} + eslint --strict ${JSSRC} -proxmoxlib.js: ${JSSRC} +proxmoxlib.js: .lint-incremental ${JSSRC} # add the version as comment in the file echo "// ${DEB_VERSION_UPSTREAM_REVISION}" > $@.tmp cat ${JSSRC} >> $@.tmp