mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Ignore dynamicImport warning from jshint
This commit is contained in:
		| @@ -18,6 +18,9 @@ RED.tourGuide = (function() { | ||||
|         if (tourCache[tourPath]) { | ||||
|             runTour(tourCache[tourPath],done); | ||||
|         } else { | ||||
|             /* jshint ignore:start */ | ||||
|             // jshint<2.13 doesn't support dynamic imports. Once grunt-contrib-jshint | ||||
|             // has been updated with the new jshint, we can stop ignoring this block | ||||
|             import(tourPath).then(function(module) { | ||||
|                 tourCache[tourPath] = module.default; | ||||
|                 runTour(tourCache[tourPath],done); | ||||
| @@ -25,6 +28,7 @@ RED.tourGuide = (function() { | ||||
|                 console.warn("Error loading tour:",err); | ||||
|                 done(err); | ||||
|             }) | ||||
|             /* jshint ignore:end */ | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user