mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
build: check for linter in bin rather than lib
Make the "can we lint?" check in Makefile and vcbuild.bat depend on bin/eslint.js rather than lib/eslint.js. In ESLint 4.0.0, lib/eslint.js is not present. The lint rules call bin/eslint.js so check for that instead. Backport-PR-URL: https://github.com/nodejs/node/pull/14340 PR-URL: https://github.com/nodejs/node/pull/13645 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
fcb27fa7a1
commit
bb1b06a4e5
2 files changed
+2
-2
No files matched your search
@@ -780,7 +780,7 @@ cpplint:
|
||||
@$(PYTHON) tools/cpplint.py $(CPPLINT_FILES)
|
||||
@$(PYTHON) tools/check-imports.py
|
||||
|
||||
ifneq ("","$(wildcard tools/eslint/lib/eslint.js)")
|
||||
ifneq ("","$(wildcard tools/eslint/bin/eslint.js)")
|
||||
lint:
|
||||
@EXIT_STATUS=0 ; \
|
||||
$(MAKE) jslint || EXIT_STATUS=$$? ; \
|
||||
|
||||
+1
-1
@@ -347,7 +347,7 @@ goto jslint
|
||||
:jslint
|
||||
if defined jslint_ci goto jslint-ci
|
||||
if not defined jslint goto exit
|
||||
if not exist tools\eslint\lib\eslint.js goto no-lint
|
||||
if not exist tools\eslint\bin\eslint.js goto no-lint
|
||||
echo running jslint
|
||||
%config%\node tools\eslint\bin\eslint.js --cache --rule "linebreak-style: 0" --rulesdir=tools\eslint-rules benchmark lib test tools
|
||||
goto exit
|
||||
|
||||
Reference in new issue
Block a user