diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-05-13 23:47:41 +0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-06-17 21:12:21 +0200 |
commit | bf76823a47fd0893dcba541cc6b30f90cd586452 (patch) | |
tree | 74cd837bca4f18e5ad0c045704592ab5ebc2785e /tools | |
parent | 52564dbb2875e581d71922460db195994f963251 (diff) | |
download | android-node-v8-bf76823a47fd0893dcba541cc6b30f90cd586452.tar.gz android-node-v8-bf76823a47fd0893dcba541cc6b30f90cd586452.tar.bz2 android-node-v8-bf76823a47fd0893dcba541cc6b30f90cd586452.zip |
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: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lint-js.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lint-js.js b/tools/lint-js.js index 45941d8ceb..109cafbe9b 100644 --- a/tools/lint-js.js +++ b/tools/lint-js.js @@ -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; |