@@ -804,7 +804,7 @@ $(TARBALL): release-only $(NODE_EXE) doc
804
804
$(RM ) -r $(TARNAME ) /deps/openssl/openssl/{doc,demos,test}
805
805
$(RM ) -r $(TARNAME ) /deps/zlib/contrib # too big, unused
806
806
$(RM ) -r $(TARNAME ) /.{editorconfig,git* ,mailmap}
807
- $(RM ) -r $(TARNAME ) /tools/{eslint,eslint-rules,osx-pkg.pmdoc,pkgsrc}
807
+ $(RM ) -r $(TARNAME ) /tools/{eslint,eslint-rules,osx-pkg.pmdoc,pkgsrc,remark-cli,remark-preset-lint-node }
808
808
$(RM ) -r $(TARNAME ) /tools/{osx-* ,license-builder.sh,cpplint.py}
809
809
$(RM ) -r $(TARNAME ) /test* .tap
810
810
find $(TARNAME ) / -name " .eslint*" -maxdepth 2 | xargs $(RM )
@@ -945,6 +945,11 @@ bench: bench-net bench-http bench-fs bench-tls
945
945
946
946
bench-ci : bench
947
947
948
+ lint-md :
949
+ @echo " Running Markdown linter..."
950
+ $(NODE ) tools/remark-cli/cli.js -q -f \
951
+ ./* .md doc src lib benchmark tools/doc/ tools/icu/
952
+
948
953
LINT_JS_TARGETS = benchmark doc lib test tools
949
954
950
955
lint-js :
@@ -1002,9 +1007,10 @@ lint:
1002
1007
@EXIT_STATUS=0 ; \
1003
1008
$(MAKE ) lint-js || EXIT_STATUS=$$? ; \
1004
1009
$(MAKE ) lint-cpp || EXIT_STATUS=$$? ; \
1010
+ $(MAKE ) lint-md || EXIT_STATUS=$$? ; \
1005
1011
exit $$ EXIT_STATUS
1006
1012
CONFLICT_RE =^>>>>>>> [0-9A-Fa-f]+|^<<<<<<< [A-Za-z]+
1007
- lint-ci : lint-js-ci lint-cpp
1013
+ lint-ci : lint-js-ci lint-cpp lint-md
1008
1014
@if ! ( grep -IEqrs " $( CONFLICT_RE) " benchmark deps doc lib src test tools ) \
1009
1015
&& ! ( find . -maxdepth 1 -type f | xargs grep -IEqs " $( CONFLICT_RE) " ); then \
1010
1016
exit 0 ; \
@@ -1067,6 +1073,7 @@ endif
1067
1073
lint-js \
1068
1074
lint-js-ci \
1069
1075
list-gtests \
1076
+ lint-md \
1070
1077
pkg \
1071
1078
release-only \
1072
1079
run-ci \
0 commit comments