diff --git a/examples/earthquake-custom-symbol.js b/examples/earthquake-custom-symbol.js index 5d2ae04bdd..5dba1f2e61 100644 --- a/examples/earthquake-custom-symbol.js +++ b/examples/earthquake-custom-symbol.js @@ -30,8 +30,7 @@ const styleFunction = function(feature) { scale = size / 10; let style = styleCache[size]; if (!style) { - const canvas = - /** @type {HTMLCanvasElement} */ (document.createElement('canvas')); + const canvas = /** @type {HTMLCanvasElement} */ (document.createElement('canvas')); const vectorContext = toContext( /** @type {CanvasRenderingContext2D} */ (canvas.getContext('2d')), {size: [size, size], pixelRatio: 1}); diff --git a/package.json b/package.json index ebc4eb3f67..4cf2a96caa 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "clean-css-cli": "4.1.11", "copy-webpack-plugin": "^4.0.1", "coveralls": "3.0.0", - "eslint": "4.18.2", + "eslint": "4.19.0", "eslint-config-openlayers": "^9.0.0", "expect.js": "0.3.1", "front-matter": "^2.1.2", diff --git a/src/ol/Overlay.js b/src/ol/Overlay.js index 54e6692937..eea30b2386 100644 --- a/src/ol/Overlay.js +++ b/src/ol/Overlay.js @@ -146,8 +146,7 @@ const Overlay = function(options) { * @protected * @type {module:ol/Overlay~OverlayPanOptions} */ - this.autoPanAnimation = options.autoPanAnimation || - /** @type {module:ol/Overlay~OverlayPanOptions} */ ({}); + this.autoPanAnimation = options.autoPanAnimation || /** @type {module:ol/Overlay~OverlayPanOptions} */ ({}); /** * @protected diff --git a/src/ol/format/KML.js b/src/ol/format/KML.js index 271f34dafd..7fcb67a52a 100644 --- a/src/ol/format/KML.js +++ b/src/ol/format/KML.js @@ -825,8 +825,7 @@ function polyStyleParser(node, objectStack) { if (fill !== undefined) { styleObject['fill'] = fill; } - const outline = - /** @type {boolean|undefined} */ (object['outline']); + const outline = /** @type {boolean|undefined} */ (object['outline']); if (outline !== undefined) { styleObject['outline'] = outline; } @@ -1432,8 +1431,7 @@ function simpleDataParser(node, objectStack) { const name = node.getAttribute('name'); if (name !== null) { const data = readString(node); - const featureObject = - /** @type {Object} */ (objectStack[objectStack.length - 1]); + const featureObject = /** @type {Object} */ (objectStack[objectStack.length - 1]); featureObject[name] = data; } }