@@ -84,15 +84,6 @@ const htmllintBad = [
84
84
"tests/unit/tabs/data/test.html"
85
85
] ;
86
86
87
- const nodeV16OrNewer = ! / ^ v 1 [ 0 - 5 ] \. / . test ( process . version ) ;
88
-
89
- // Support: Node.js <16
90
- // Skip running tasks that dropped support for Node.js 10-15
91
- // in this Node version.
92
- function runIfNewNode ( task ) {
93
- return nodeV16OrNewer ? task : "print_old_node_message:" + task ;
94
- }
95
-
96
87
function mapMinFile ( file ) {
97
88
return "dist/" + file . replace ( / u i \/ / , "minified/" ) ;
98
89
}
@@ -357,13 +348,7 @@ grunt.initConfig( {
357
348
} ) ;
358
349
359
350
// grunt plugins
360
- require ( "load-grunt-tasks" ) ( grunt , {
361
- pattern : nodeV16OrNewer ? [ "grunt-*" ] : [
362
- "grunt-*" ,
363
- "!grunt-eslint" ,
364
- "!grunt-html"
365
- ]
366
- } ) ;
351
+ require ( "load-grunt-tasks" ) ( grunt ) ;
367
352
368
353
// local tasks
369
354
grunt . loadTasks ( "build/tasks" ) ;
@@ -406,9 +391,9 @@ grunt.registerTask( "print_old_node_message", ( ...args ) => {
406
391
// Keep this task list in sync with the testing steps in our GitHub action test workflow file!
407
392
grunt . registerTask ( "lint" , [
408
393
"asciilint" ,
409
- runIfNewNode ( "eslint" ) ,
394
+ "eslint" ,
410
395
"csslint" ,
411
- runIfNewNode ( "htmllint" )
396
+ "htmllint"
412
397
] ) ;
413
398
grunt . registerTask ( "build" , [ "requirejs" , "concat" ] ) ;
414
399
grunt . registerTask ( "default" , [ "lint" , "build" ] ) ;
0 commit comments