diff --git a/Makefile.am b/Makefile.am index e832da0c5..8f2214c15 100644 --- a/Makefile.am +++ b/Makefile.am @@ -653,12 +653,7 @@ browser/node_modules: browser/package.json browser/archived-packages @cd browser && npm install eslint: browser/node_modules - browser/node_modules/.bin/eslint browser/src browser/js browser/admin/src \ - --max-warnings 0 \ - --resolve-plugins-relative-to browser \ - --ignore-path browser/.eslintignore \ - --no-eslintrc \ - --config browser/.eslintrc + @make -C browser eslint prettier: browser/node_modules browser/node_modules/.bin/prettier \ diff --git a/browser/Makefile.am b/browser/Makefile.am index f36b8ec2d..55bfdddfa 100644 --- a/browser/Makefile.am +++ b/browser/Makefile.am @@ -867,6 +867,13 @@ jsconfig: $(abs_srcdir)/jsconfig.json $(abs_srcdir)/admin/jsconfig.json build-tests: $(MOCHA_TS_JS_FILES) @echo "Build of mocha test finished." +eslint: $(COOL_ADMIN_TS_JS) + $(call run_eslint_check,--max-warnings 0 \ + --ignore-pattern $(COOL_ADMIN_TS_JS) \ + $(srcdir)/src \ + $(srcdir)/js \ + $(srcdir)/admin/src) + MOCHA_TEST_LOG = "`pwd`/mocha.log" DUPLICATION_TEST_LOG = "`pwd`/duplication.log" check-local: $(MOCHA_TS_JS_FILES)