doc, tools: add doc linting to CI · nodejs/node@47faa02 · GitHub
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 <teddy.katz@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
1 parent 46a7c29 commit 47faa02

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion

tools/jslint.js

Lines changed: 3 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)