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