]> git.proxmox.com Git - pmg-gui.git/commitdiff
buildsys: enforce strict eslint (no warnings allowed) in check target
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 5 Mar 2021 22:04:46 +0000 (23:04 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 5 Mar 2021 22:04:48 +0000 (23:04 +0100)
the for development designed incremental lint target is still non
strict, and allows warnings allowing less interrupted dev workflow

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
js/Makefile

index 796c3321785697d1e0294bf001a723cd24e9572a..a5266fced5e41ce4509c05e07f5c91f24ce4144d 100644 (file)
@@ -106,8 +106,8 @@ lint: .lint-incremental
 
 .PHONY: check
 check: ${JSSRC}
-       rm -f ".lint-incremental"
-       $(MAKE) lint
+       eslint --strict ${JSSRC}
+       touch ".lint-incremental"
 
 pmgmanagerlib.js: OnlineHelpInfo.js ${JSSRC}
        echo "// ${DEB_VERSION_UPSTREAM_REVISION}" > $@.tmp