File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1194,23 +1194,26 @@ tools/.mdlintstamp: $(LINT_MD_FILES)
11941194
11951195.PHONY : lint-md
11961196# Lints the markdown documents maintained by us in the codebase.
1197- lint-md : | tools/.mdlintstamp
1197+ lint-md : lint-js-doc | tools/.mdlintstamp
11981198
11991199
12001200LINT_JS_TARGETS = .eslintrc.js benchmark doc lib test tools
12011201
12021202run-lint-js = tools/node_modules/eslint/bin/eslint.js --cache \
1203- --report-unused-disable-directives --ext=.js,.mjs,.md $(LINT_JS_TARGETS )
1203+ --report-unused-disable-directives --ext=$( EXTENSIONS ) $(LINT_JS_TARGETS )
12041204run-lint-js-fix = $(run-lint-js ) --fix
12051205
12061206.PHONY : lint-js-fix
12071207lint-js-fix :
12081208 @$(call available-node,$(run-lint-js-fix ) )
12091209
12101210.PHONY : lint-js
1211+ .PHONY : lint-js-doc
12111212# Note that on the CI `lint-js-ci` is run instead.
12121213# Lints the JavaScript code with eslint.
1213- lint-js :
1214+ lint-js : EXTENSIONS=.js,.mjs,.md
1215+ lint-js-doc : EXTENSIONS=.md
1216+ lint-js lint-js-doc :
12141217 @if [ " $( shell $( node_use_openssl) ) " != " true" ]; then \
12151218 echo " Skipping $@ (no crypto)" ; \
12161219 else \
You can’t perform that action at this time.
0 commit comments