Update ESLint config and plugins

This commit is contained in:
Tim Schaub
2022-05-23 15:01:07 -06:00
parent f1fc38ce33
commit bbbca0ab78
11 changed files with 205 additions and 270 deletions

View File

@@ -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;

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}