From bf76823a47fd0893dcba541cc6b30f90cd586452 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Mon, 13 May 2019 23:47:41 +0200 Subject: [PATCH] tools: ignore node_modules when linting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This updates out individual linting to work with eslint v6. Without this change the node_modules would also be checked for. PR-URL: https://github.com/nodejs/node/pull/27670 Reviewed-By: Michaël Zasso Reviewed-By: Richard Lau Reviewed-By: Refael Ackermann (רפאל פלחי) Reviewed-By: Daijiro Wachi Reviewed-By: Ujjwal Sharma --- tools/lint-js.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lint-js.js b/tools/lint-js.js index 45941d8ceb4971..109cafbe9b4cad 100644 --- a/tools/lint-js.js +++ b/tools/lint-js.js @@ -35,7 +35,8 @@ if (cluster.isMaster) { let curPath = 'Starting ...'; let showProgress = true; const globOptions = { - nodir: true + nodir: true, + ignore: '**/node_modules/**/*' }; const workerConfig = {}; let startTime;