1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Ignore dynamicImport warning from jshint

This commit is contained in:
Nick O'Leary 2021-09-09 10:59:49 +01:00
parent 48baac916c
commit e20cfb3dae
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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 */
}
}