@@ -1191,7 +1191,7 @@ $(TARBALL): release-only doc-only
11911191 $(RM ) -r $(TARNAME ) /tools/eslint
11921192 $(RM ) -r $(TARNAME ) /tools/eslint-rules
11931193 $(RM ) -r $(TARNAME ) /tools/license-builder.sh
1194- $(RM ) -r $(TARNAME ) /tools/node_modules
1194+ $(RM ) -r $(TARNAME ) /tools/eslint/ node_modules
11951195 $(RM ) -r $(TARNAME ) /tools/osx-*
11961196 $(RM ) -r $(TARNAME ) /tools/osx-pkg.pmdoc
11971197 find $(TARNAME ) /deps/v8/test/* -type d ! -regex ' .*/test/torque$$' | xargs $(RM ) -r
@@ -1377,7 +1377,7 @@ format-md:
13771377
13781378LINT_JS_TARGETS = eslint.config.mjs benchmark doc lib test tools
13791379
1380- run-lint-js = tools/node_modules/eslint/bin/eslint.js --cache \
1380+ run-lint-js = tools/eslint/ node_modules/eslint/bin/eslint.js --cache \
13811381 --max-warnings=0 --report-unused-disable-directives $(LINT_JS_TARGETS )
13821382run-lint-js-fix = $(run-lint-js ) --fix
13831383
@@ -1401,7 +1401,7 @@ lint-js lint-js-doc:
14011401jslint : lint-js
14021402 $(warning Please use lint-js instead of jslint)
14031403
1404- run-lint-js-ci = tools/node_modules/eslint/bin/eslint.js \
1404+ run-lint-js-ci = tools/eslint/ node_modules/eslint/bin/eslint.js \
14051405 --max-warnings=0 --report-unused-disable-directives -f tap \
14061406 -o test-eslint.tap $(LINT_JS_TARGETS )
14071407
@@ -1561,7 +1561,7 @@ lint-yaml:
15611561
15621562.PHONY : lint
15631563.PHONY : lint-ci
1564- ifneq ("","$(wildcard tools/node_modules/eslint/) ")
1564+ ifneq ("","$(wildcard tools/eslint/ node_modules/eslint/) ")
15651565lint : # # Run JS, C++, MD and doc linters.
15661566 @EXIT_STATUS=0 ; \
15671567 $(MAKE ) lint-js || EXIT_STATUS=$$? ; \
0 commit comments