Browse Source

Filtering .js files on jshint.

fredck 11 years ago
parent
commit
14fba72865
1 changed files with 3 additions and 1 deletions
  1. 3 1
      dev/tasks/jshint.js

+ 3 - 1
dev/tasks/jshint.js

@@ -13,7 +13,9 @@ module.exports = function( grunt ) {
 				return [ '**/*.js' ];
 			},
 			git: function() {
-				return tools.getGitDirtyFiles();
+				return tools.getGitDirtyFiles().filter( function( file ) {
+					return ( /\.js$/ ).test( file );
+				} );
 			}
 		}
 	} );