Skip to content

Commit 309052e

Browse files
committed
Build: Don't even load grunt-eslint on old Node
1 parent e865fdf commit 309052e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Gruntfile.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ function runIfNewNode( task ) {
5050
return oldNode ? "print_old_node_message:" + task : task;
5151
}
5252

53-
require( "load-grunt-tasks" )( grunt );
53+
require( "load-grunt-tasks" )( grunt, {
54+
pattern: oldNode ? [ "grunt-*", "!grunt-eslint" ] : [ "grunt-*" ]
55+
} );
5456

5557
grunt.initConfig( {
5658
pkg: grunt.file.readJSON( "package.json" ),

0 commit comments

Comments
 (0)