@@ -84,15 +84,6 @@ const htmllintBad = [
8484 "tests/unit/tabs/data/test.html"
8585] ;
8686
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-
9687function mapMinFile ( file ) {
9788 return "dist/" + file . replace ( / u i \/ / , "minified/" ) ;
9889}
@@ -357,13 +348,7 @@ grunt.initConfig( {
357348} ) ;
358349
359350// 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 ) ;
367352
368353// local tasks
369354grunt . loadTasks ( "build/tasks" ) ;
@@ -406,9 +391,9 @@ grunt.registerTask( "print_old_node_message", ( ...args ) => {
406391// Keep this task list in sync with the testing steps in our GitHub action test workflow file!
407392grunt . registerTask ( "lint" , [
408393 "asciilint" ,
409- runIfNewNode ( "eslint" ) ,
394+ "eslint" ,
410395 "csslint" ,
411- runIfNewNode ( "htmllint" )
396+ "htmllint"
412397] ) ;
413398grunt . registerTask ( "build" , [ "requirejs" , "concat" ] ) ;
414399grunt . registerTask ( "default" , [ "lint" , "build" ] ) ;
0 commit comments