Skip to content

Commit 42dca99

Browse files
committed
doc, tools: add doc linting to CI
PR-URL: #12640 Fixes: #12635 Refs: #12563 Reviewed-By: Teddy Katz <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent 71abfa9 commit 42dca99

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ jslint:
861861
jslint-ci:
862862
@echo "Running JS linter..."
863863
$(NODE) tools/jslint.js $(PARALLEL_ARGS) -f tap -o test-eslint.tap \
864-
benchmark lib test tools
864+
benchmark doc lib test tools
865865

866866
CPPLINT_EXCLUDE ?=
867867
CPPLINT_EXCLUDE += src/node_root_certs.h

tools/jslint.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
const rulesDirs = ['tools/eslint-rules'];
4+
const extensions = ['.js', '.md'];
45
// This is the maximum number of files to be linted per worker at any given time
56
const maxWorkload = 40;
67

@@ -14,7 +15,8 @@ const glob = require('./eslint/node_modules/glob');
1415

1516
const cwd = process.cwd();
1617
const cliOptions = {
17-
rulePaths: rulesDirs
18+
rulePaths: rulesDirs,
19+
extensions: extensions,
1820
};
1921

2022
// Check if we should fix errors that are fixable

vcbuild.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ goto exit
428428

429429
:jslint-ci
430430
echo running jslint-ci
431-
%config%\node tools\jslint.js -J -f tap -o test-eslint.tap benchmark lib test tools
431+
%config%\node tools\jslint.js -J -f tap -o test-eslint.tap benchmark doc lib test tools
432432
goto exit
433433

434434
:no-lint

0 commit comments

Comments
 (0)