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:
parent
48baac916c
commit
e20cfb3dae
@ -18,6 +18,9 @@ RED.tourGuide = (function() {
|
|||||||
if (tourCache[tourPath]) {
|
if (tourCache[tourPath]) {
|
||||||
runTour(tourCache[tourPath],done);
|
runTour(tourCache[tourPath],done);
|
||||||
} else {
|
} 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) {
|
import(tourPath).then(function(module) {
|
||||||
tourCache[tourPath] = module.default;
|
tourCache[tourPath] = module.default;
|
||||||
runTour(tourCache[tourPath],done);
|
runTour(tourCache[tourPath],done);
|
||||||
@ -25,6 +28,7 @@ RED.tourGuide = (function() {
|
|||||||
console.warn("Error loading tour:",err);
|
console.warn("Error loading tour:",err);
|
||||||
done(err);
|
done(err);
|
||||||
})
|
})
|
||||||
|
/* jshint ignore:end */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user