Skip to content

Commit bf76823

Browse files
committed
tools: ignore node_modules when linting
This updates out individual linting to work with eslint v6. Without this change the node_modules would also be checked for. PR-URL: #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]>
1 parent 52564db commit bf76823

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/lint-js.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ if (cluster.isMaster) {
3535
let curPath = 'Starting ...';
3636
let showProgress = true;
3737
const globOptions = {
38-
nodir: true
38+
nodir: true,
39+
ignore: '**/node_modules/**/*'
3940
};
4041
const workerConfig = {};
4142
let startTime;

0 commit comments

Comments
 (0)