add a rule for tidy checker

This commit is contained in:
Laurent Mazet 2020-12-28 10:53:05 +01:00
parent aa595353ac
commit b1dade8bb9
1 changed files with 5 additions and 0 deletions

View File

@ -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