Make code prettier
This updates ESLint and our shared eslint-config-openlayers to use Prettier. Most formatting changes were automatically applied with this:
npm run lint -- --fix
A few manual changes were required:
* In `examples/offscreen-canvas.js`, the `//eslint-disable-line` comment needed to be moved to the appropriate line to disable the error about the `'worker-loader!./offscreen-canvas.worker.js'` import.
* In `examples/webpack/exapmle-builder.js`, spaces could not be added after a couple `function`s for some reason. While editing this, I reworked `ExampleBuilder` to be a class.
* In `src/ol/format/WMSGetFeatureInfo.js`, the `// @ts-ignore` comment needed to be moved down one line so it applied to the `parsersNS` argument.
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
*/
|
||||
import Layer from './Layer.js';
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {Object} Options
|
||||
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
||||
@@ -30,7 +29,6 @@ import Layer from './Layer.js';
|
||||
* @property {import("../source/Image.js").default} [source] Source for this layer.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
* Server-rendered images that are available for arbitrary extents and
|
||||
@@ -43,7 +41,6 @@ import Layer from './Layer.js';
|
||||
* @api
|
||||
*/
|
||||
class BaseImageLayer extends Layer {
|
||||
|
||||
/**
|
||||
* @param {Options=} opt_options Layer options.
|
||||
*/
|
||||
@@ -51,7 +48,6 @@ class BaseImageLayer extends Layer {
|
||||
const options = opt_options ? opt_options : {};
|
||||
super(options);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default BaseImageLayer;
|
||||
|
||||
Reference in New Issue
Block a user