|
|
@@ -8,6 +8,7 @@ module.exports = function( grunt ) {
|
|
|
tools.setupMultitaskConfig( grunt, {
|
|
|
task: 'jshint',
|
|
|
defaultOptions: grunt.file.readJSON( 'dev/tasks/jshint-config.json' ),
|
|
|
+ addGitIgnore: 'ignores',
|
|
|
targets: {
|
|
|
all: function() {
|
|
|
return [ '**/*.js' ];
|
|
|
@@ -20,14 +21,5 @@ module.exports = function( grunt ) {
|
|
|
}
|
|
|
} );
|
|
|
|
|
|
- // Take ignore list from .gitIgnore.
|
|
|
- grunt.config.merge( {
|
|
|
- jshint: {
|
|
|
- options: {
|
|
|
- ignores: tools.getGitIgnore( grunt )
|
|
|
- }
|
|
|
- }
|
|
|
- } );
|
|
|
-
|
|
|
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
|
|
|
};
|