add a rule for tidy checker
This commit is contained in:
parent
aa595353ac
commit
b1dade8bb9
5
Makefile
5
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
|
||||
|
|
Loading…
Reference in New Issue