build: add mjs extension to lint-js

This matches what the lint-js make target passes through the CLI.

PR-URL: https://github.com/nodejs/node/pull/32145
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
Nick Schonning 2020-03-08 01:37:48 -05:00 committed by Anna Henningsen
parent 4b84010e5a
commit 641eac9b0d
No known key found for this signature in database
GPG Key ID: A94130F0BFC8EBE9

View File

@ -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;