File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
tools/make/lib/lint/javascript Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -250,16 +250,16 @@ endif
250250# @example
251251# make eslint-files FILES='/foo/index.js /bar/index.js'
252252# /
253- eslint-files : $(NODE_MODULES )
253+ eslint-src : $(NODE_MODULES )
254254ifeq ($(FAIL_FAST ) , true)
255- $(QUIET) for file in $(FILES) ; do \
255+ $(QUIET) $(FIND_SOURCES_CMD) | grep '^[\/]\|^[a-zA-Z]:[/\]' | grep -v '/node_modules/' | while read -r file ; do \
256256 echo ''; \
257257 echo "Linting file: $$file"; \
258258 $(ESLINT) $(eslint_flags) --config $(ESLINT_CONF) $$file || exit 1; \
259259 done
260260else
261261 $(QUIET) status=0; \
262- for file in $(FILES) ; do \
262+ $(FIND_SOURCES_CMD) | grep '^[\/]\|^[a-zA-Z]:[/\]' | grep -v '/node_modules/' | while read -r file ; do \
263263 echo ''; \
264264 echo "Linting file: $$file"; \
265265 if ! $(ESLINT) $(eslint_flags) --config $(ESLINT_CONF) $$file; then \
270270 exit $$status;
271271endif
272272
273+
273274.PHONY : eslint-files
You can’t perform that action at this time.
0 commit comments