@@ -1388,19 +1388,19 @@ run-lint-js = tools/eslint/node_modules/eslint/bin/eslint.js --cache \
1388
1388
--max-warnings=0 --report-unused-disable-directives $(LINT_JS_TARGETS )
1389
1389
run-lint-js-fix = $(run-lint-js ) --fix
1390
1390
1391
- tools/eslint/node_modules : tools/eslint/package-lock.json
1391
+ tools/eslint/node_modules/eslint/bin/eslint.js : tools/eslint/package-lock.json
1392
1392
-cd tools/eslint && $(call available-node,$(run-npm-ci ) )
1393
1393
1394
1394
.PHONY : lint-js-fix
1395
- lint-js-fix : tools/eslint/node_modules
1395
+ lint-js-fix : tools/eslint/node_modules/eslint/bin/eslint.js
1396
1396
@$(call available-node,$(run-lint-js-fix ) )
1397
1397
1398
1398
.PHONY : lint-js
1399
1399
.PHONY : lint-js-doc
1400
1400
# Note that on the CI `lint-js-ci` is run instead.
1401
1401
# Lints the JavaScript code with eslint.
1402
1402
lint-js-doc : LINT_JS_TARGETS=doc
1403
- lint-js lint-js-doc : tools/eslint/node_modules
1403
+ lint-js lint-js-doc : tools/eslint/node_modules/eslint/bin/eslint.js
1404
1404
@if [ " $( shell $( node_use_openssl) ) " != " true" ]; then \
1405
1405
echo " Skipping $@ (no crypto)" ; \
1406
1406
else \
@@ -1417,7 +1417,7 @@ run-lint-js-ci = tools/eslint/node_modules/eslint/bin/eslint.js \
1417
1417
1418
1418
.PHONY : lint-js-ci
1419
1419
# On the CI the output is emitted in the TAP format.
1420
- lint-js-ci : tools/eslint/node_modules
1420
+ lint-js-ci : tools/eslint/node_modules/eslint/bin/eslint.js
1421
1421
$(info Running JS linter...)
1422
1422
@$(call available-node,$(run-lint-js-ci ) )
1423
1423
0 commit comments