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
250
250
# @example
251
251
# make eslint-files FILES='/foo/index.js /bar/index.js'
252
252
# /
253
- eslint-files : $(NODE_MODULES )
253
+ eslint-src : $(NODE_MODULES )
254
254
ifeq ($(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 \
256
256
echo ''; \
257
257
echo "Linting file: $$file"; \
258
258
$(ESLINT) $(eslint_flags) --config $(ESLINT_CONF) $$file || exit 1; \
259
259
done
260
260
else
261
261
$(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 \
263
263
echo ''; \
264
264
echo "Linting file: $$file"; \
265
265
if ! $(ESLINT) $(eslint_flags) --config $(ESLINT_CONF) $$file; then \
270
270
exit $$status;
271
271
endif
272
272
273
+
273
274
.PHONY : eslint-files
You can’t perform that action at this time.
0 commit comments