File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
tools/make/lib/lint/javascript Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -253,21 +253,27 @@ endif
253253eslint-files : $(NODE_MODULES )
254254ifeq ($(FAIL_FAST ) , true)
255255 $(QUIET) for file in $(FILES); do \
256+ if [ -f "$$file" ]; then \
256257 echo ''; \
257258 echo "Linting file: $$file"; \
258259 $(ESLINT) $(eslint_flags) --config $(ESLINT_CONF) $$file || exit 1; \
259- done
260+ fi; \
261+ done
262+
260263else
261264 $(QUIET) status=0; \
262265 for file in $(FILES); do \
263- echo ''; \
264- echo "Linting file: $$file"; \
265- if ! $(ESLINT) $(eslint_flags) --config $(ESLINT_CONF) $$file; then \
266- echo 'Linting failed.'; \
267- status=1; \
266+ if [ -f "$$file" ]; then \
267+ echo ''; \
268+ echo "Linting file: $$file"; \
269+ if ! $(ESLINT) $(eslint_flags) --config $(ESLINT_CONF) $$file; then \
270+ echo 'Linting failed.'; \
271+ status=1; \
272+ fi; \
268273 fi; \
269274 done; \
270275 exit $$status;
271276endif
272277
278+
273279.PHONY : eslint-files
You can’t perform that action at this time.
0 commit comments