Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 906528b

Browse files
Update eslint.mk to fix linting issues.
Signed-off-by: Zuhair Ahmad <157193652+Zuhair-CS@users.noreply.github.com>
1 parent 151d830 commit 906528b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎tools/make/lib/lint/javascript/eslint.mk‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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)
254254
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 \
256256
echo ''; \
257257
echo "Linting file: $$file"; \
258258
$(ESLINT) $(eslint_flags) --config $(ESLINT_CONF) $$file || exit 1; \
259259
done
260260
else
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 \
@@ -270,4 +270,5 @@ else
270270
exit $$status;
271271
endif
272272

273+
273274
.PHONY: eslint-files

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /