tools: make eslint work on subdirectories
authorRoman Reiss <me@silverwind.io>
Tue, 12 May 2015 19:29:03 +0000 (21:29 +0200)
committerRoman Reiss <me@silverwind.io>
Tue, 12 May 2015 19:57:08 +0000 (21:57 +0200)
The old pattern didn't include files in lib/internal. This changes the
pattern to directories which makes eslint apply to all subdirectories as
well.

PR-URL: https://github.com/iojs/io.js/pull/1686
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
Makefile

index 92a7694..451f81d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -375,7 +375,7 @@ bench-idle:
        ./$(NODE_EXE) benchmark/idle_clients.js &
 
 jslint:
-       ./$(NODE_EXE) tools/eslint/bin/eslint.js src/*.js lib/*.js --reset --quiet
+       ./$(NODE_EXE) tools/eslint/bin/eslint.js src lib --reset --quiet
 
 CPPLINT_EXCLUDE ?=
 CPPLINT_EXCLUDE += src/node_lttng.cc