From: Laurent Mazet Date: Mon, 28 Dec 2020 09:53:05 +0000 (+0100) Subject: add a rule for tidy checker X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=b1dade8bb90a08514801e7900c8aa2a4302e5f8a;p=trivabble.git add a rule for tidy checker --- diff --git a/Makefile b/Makefile index cf855d8..1015463 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,8 @@ PORT = 3000 ESLINT?=eslint +TIDY?=tidy + ifeq (, $(shell which $(firstword ${ESLINT}))) ESLINT?=npx eslint endif @@ -34,5 +36,8 @@ public/dict/list.js: eslint: -${ESLINT} **/*.js +tidy: + -${TIDY} -xml -errors -q public/*.html + start-dev-server: lang cd server && make start-dev-server