browser: create eslint rule
Change-Id: I65766ffdebf5c3148cf13507f6ee9c1980c4bb79 Signed-off-by: Henry Castro <hcastro@collabora.com>
This commit is contained in:
parent
5d8e9983a9
commit
e2103b241a
2 changed files with 8 additions and 6 deletions
|
@ -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 \
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue