summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-25 13:54:06 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-25 22:44:09 +0300
commit42dca99cd73eb26c24327e3c7e8162d150a91162 (patch)
tree05e16f42775bda1e60d0d69d31e7c7e3ff1edd80 /tools
parent71abfa95483d0fbde24d3434c8967d6aabb4c624 (diff)
downloadandroid-node-v8-42dca99cd73eb26c24327e3c7e8162d150a91162.tar.gz
android-node-v8-42dca99cd73eb26c24327e3c7e8162d150a91162.tar.bz2
android-node-v8-42dca99cd73eb26c24327e3c7e8162d150a91162.zip
doc, tools: add doc linting to CI
PR-URL: https://github.com/nodejs/node/pull/12640 Fixes: https://github.com/nodejs/node/issues/12635 Refs: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'tools')
-rw-r--r--tools/jslint.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/jslint.js b/tools/jslint.js
index 5aa6079dea..245a5c570b 100644
--- a/tools/jslint.js
+++ b/tools/jslint.js
@@ -1,6 +1,7 @@
'use strict';
const rulesDirs = ['tools/eslint-rules'];
+const extensions = ['.js', '.md'];
// This is the maximum number of files to be linted per worker at any given time
const maxWorkload = 40;
@@ -14,7 +15,8 @@ const glob = require('./eslint/node_modules/glob');
const cwd = process.cwd();
const cliOptions = {
- rulePaths: rulesDirs
+ rulePaths: rulesDirs,
+ extensions: extensions,
};
// Check if we should fix errors that are fixable