Skip to content

Commit

Permalink
tools: ignore node_modules when linting
Browse files Browse the repository at this point in the history
This updates out individual linting to work with eslint v6. Without
this change the node_modules would also be checked for.

PR-URL: nodejs#27670
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Refael Ackermann (רפאל פלחי) <refack@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
  • Loading branch information
BridgeAR committed Jun 11, 2019
1 parent a121f81 commit 1eda6eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/lint-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1eda6eb

Please sign in to comment.