File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1211,23 +1211,26 @@ tools/.mdlintstamp: $(LINT_MD_FILES)
1211
1211
1212
1212
.PHONY : lint-md
1213
1213
# Lints the markdown documents maintained by us in the codebase.
1214
- lint-md : | tools/.mdlintstamp
1214
+ lint-md : lint-js-doc | tools/.mdlintstamp
1215
1215
1216
1216
1217
1217
LINT_JS_TARGETS = .eslintrc.js benchmark doc lib test tools
1218
1218
1219
1219
run-lint-js = tools/node_modules/eslint/bin/eslint.js --cache \
1220
- --report-unused-disable-directives --ext=.js,.mjs,.md $(LINT_JS_TARGETS )
1220
+ --report-unused-disable-directives --ext=$( EXTENSIONS ) $(LINT_JS_TARGETS )
1221
1221
run-lint-js-fix = $(run-lint-js ) --fix
1222
1222
1223
1223
.PHONY : lint-js-fix
1224
1224
lint-js-fix :
1225
1225
@$(call available-node,$(run-lint-js-fix ) )
1226
1226
1227
1227
.PHONY : lint-js
1228
+ .PHONY : lint-js-doc
1228
1229
# Note that on the CI `lint-js-ci` is run instead.
1229
1230
# Lints the JavaScript code with eslint.
1230
- lint-js :
1231
+ lint-js : EXTENSIONS=.js,.mjs,.md
1232
+ lint-js-doc : EXTENSIONS=.md
1233
+ lint-js lint-js-doc :
1231
1234
@if [ " $( shell $( node_use_openssl) ) " != " true" ]; then \
1232
1235
echo " Skipping $@ (no crypto)" ; \
1233
1236
else \
You can’t perform that action at this time.
0 commit comments