add eslint rule
authorLaurent Mazet <mazet@softndesign.org>
Wed, 6 May 2020 22:52:46 +0000 (00:52 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Wed, 6 May 2020 22:52:46 +0000 (00:52 +0200)
Makefile

index 2b416d470dd9960f58eb44e33944380cfe569792..cf4b24716219e408dac7d2728ddbb0a5f295d124 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,10 +4,18 @@ PORT = 3000
 
 help:
        @echo make lang: build translation files
+       @echo make eslint: use ESLint to check code standard conformence
        @echo make start-dev-server: start a development server
 
 lang:
        cd l10n; make
 
+eslint:
+       -npx eslint server/trivabble-server.js
+       -npx eslint public/alert.js
+       -npx eslint public/config.js
+       -npx eslint public/l10n.js
+       -npx eslint public/trivabble.js
+
 start-dev-server:
        cd server && make start-dev-server