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 @@ -1195,23 +1195,26 @@ tools/.mdlintstamp: $(LINT_MD_FILES)
1195
1195
1196
1196
.PHONY : lint-md
1197
1197
# Lints the markdown documents maintained by us in the codebase.
1198
- lint-md : | tools/.mdlintstamp
1198
+ lint-md : lint-js-doc | tools/.mdlintstamp
1199
1199
1200
1200
1201
1201
LINT_JS_TARGETS = .eslintrc.js benchmark doc lib test tools
1202
1202
1203
1203
run-lint-js = tools/node_modules/eslint/bin/eslint.js --cache \
1204
- --report-unused-disable-directives --ext=.js,.mjs,.md $(LINT_JS_TARGETS )
1204
+ --report-unused-disable-directives --ext=$( EXTENSIONS ) $(LINT_JS_TARGETS )
1205
1205
run-lint-js-fix = $(run-lint-js ) --fix
1206
1206
1207
1207
.PHONY : lint-js-fix
1208
1208
lint-js-fix :
1209
1209
@$(call available-node,$(run-lint-js-fix ) )
1210
1210
1211
1211
.PHONY : lint-js
1212
+ .PHONY : lint-js-doc
1212
1213
# Note that on the CI `lint-js-ci` is run instead.
1213
1214
# Lints the JavaScript code with eslint.
1214
- lint-js :
1215
+ lint-js : EXTENSIONS=.js,.mjs,.md
1216
+ lint-js-doc : EXTENSIONS=.md
1217
+ lint-js lint-js-doc :
1215
1218
@if [ " $( shell $( node_use_openssl) ) " != " true" ]; then \
1216
1219
echo " Skipping $@ (no crypto)" ; \
1217
1220
else \
You can’t perform that action at this time.
0 commit comments