diff --git a/Makefile b/Makefile index cd7d33fd655d15..89739f3eadeb45 100644 --- a/Makefile +++ b/Makefile @@ -1101,7 +1101,7 @@ lint-md: @echo "To install (requires internet access) run: $ make lint-md-build" endif -LINT_JS_TARGETS = benchmark doc lib test tools +LINT_JS_TARGETS = .eslintrc.js benchmark doc lib test tools run-lint-js = tools/node_modules/eslint/bin/eslint.js --cache \ --ext=.js,.mjs,.md $(LINT_JS_TARGETS) --ignore-pattern '!.eslintrc.js' diff --git a/vcbuild.bat b/vcbuild.bat index a66449283192c3..b3ec5aee96cca8 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -514,7 +514,7 @@ if defined lint_js_ci goto lint-js-ci if not defined lint_js goto exit if not exist tools\node_modules\eslint goto no-lint echo running lint-js -%config%\node tools\node_modules\eslint\bin\eslint.js --cache --rule "linebreak-style: 0" --ext=.js,.mjs,.md benchmark doc lib test tools +%config%\node tools\node_modules\eslint\bin\eslint.js --cache --rule "linebreak-style: 0" --ext=.js,.mjs,.md .eslintrc.js benchmark doc lib test tools goto exit :lint-js-ci