From 45d05e1cf60b010706ff4f6db59b451b6e6b5f39 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Sun, 8 Mar 2020 01:37:48 -0500 Subject: [PATCH] build: add mjs extension to lint-js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This matches what the lint-js make target passes through the CLI. Backport-PR-URL: https://github.com/nodejs/node/pull/32610 PR-URL: https://github.com/nodejs/node/pull/32145 Reviewed-By: Richard Lau Reviewed-By: Denys Otrishko Reviewed-By: Michaƫl Zasso Reviewed-By: Yongsheng Zhang Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat --- tools/lint-js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lint-js.js b/tools/lint-js.js index 30ff2d313c46c4..4ddbe228d16d37 100644 --- a/tools/lint-js.js +++ b/tools/lint-js.js @@ -1,7 +1,7 @@ 'use strict'; const rulesDirs = ['tools/eslint-rules']; -const extensions = ['.js', '.md']; +const extensions = ['.js', '.mjs', '.md']; // This is the maximum number of files to be linted per worker at any given time const maxWorkload = 60;