Skip to content

Commit 47faa02

Browse files
vsemozhetbytevanlucas
authored andcommitted
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 46a7c29 commit 47faa02

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
@@ -816,7 +816,7 @@ jslint:
816816
jslint-ci:
817817
@echo "Running JS linter..."
818818
$(NODE) tools/jslint.js $(PARALLEL_ARGS) -f tap -o test-eslint.tap \
819-
benchmark lib test tools
819+
benchmark doc lib test tools
820820

821821
CPPLINT_EXCLUDE ?=
822822
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
@@ -405,7 +405,7 @@ goto exit
405405

406406
:jslint-ci
407407
echo running jslint-ci
408-
%config%\node tools\jslint.js -J -f tap -o test-eslint.tap benchmark lib test tools
408+
%config%\node tools\jslint.js -J -f tap -o test-eslint.tap benchmark doc lib test tools
409409
goto exit
410410

411411
:no-lint

0 commit comments

Comments
 (0)