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 <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Refael Ackermann (רפאל פלחי) <[email protected]>
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: Ujjwal Sharma <[email protected]>
  • 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.