Update ESLint config and plugins
This commit is contained in:
@@ -184,7 +184,7 @@ function getImagesForTIFF(tiff) {
|
||||
|
||||
/**
|
||||
* @param {SourceInfo} source The GeoTIFF source.
|
||||
* @param {object} options Options for the GeoTIFF source.
|
||||
* @param {Object} options Options for the GeoTIFF source.
|
||||
* @return {Promise<Array<GeoTIFFImage>>} Resolves to a list of images.
|
||||
*/
|
||||
function getImagesForSource(source, options) {
|
||||
@@ -345,7 +345,7 @@ class GeoTIFFSource extends DataTile {
|
||||
const numSources = this.sourceInfo_.length;
|
||||
|
||||
/**
|
||||
* @type {object}
|
||||
* @type {Object}
|
||||
* @private
|
||||
*/
|
||||
this.sourceOptions_ = options.sourceOptions;
|
||||
|
||||
@@ -424,8 +424,8 @@ class ImageWMS extends ImageSource {
|
||||
case WMSServerType.QGIS:
|
||||
params['DPI'] = 90 * pixelRatio;
|
||||
break;
|
||||
default:
|
||||
assert(false, 8); // Unknown `serverType` configured
|
||||
default: // Unknown `serverType` configured
|
||||
assert(false, 8);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -355,8 +355,8 @@ class TileWMS extends TileImage {
|
||||
case WMSServerType.QGIS:
|
||||
params['DPI'] = 90 * pixelRatio;
|
||||
break;
|
||||
default:
|
||||
assert(false, 52); // Unknown `serverType` configured
|
||||
default: // Unknown `serverType` configured
|
||||
assert(false, 52);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,8 +180,8 @@ class Zoomify extends TileImage {
|
||||
height >>= 1;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
assert(false, 53); // Unknown `tierSizeCalculation` configured
|
||||
default: // Unknown `tierSizeCalculation` configured
|
||||
assert(false, 53);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user