# HG changeset patch # User Thomas Junk # Date 1626336709 -7200 # Node ID fb3e127bccb40af840686d7367ae05d6e1c9df4f # Parent 661af6353d3bcc8dd10dedff118dc07dfcedadf6 fixed linting errors diff -r 661af6353d3b -r fb3e127bccb4 client/src/components/layers/layers.js --- a/client/src/components/layers/layers.js Thu Jul 15 09:37:07 2021 +0200 +++ b/client/src/components/layers/layers.js Thu Jul 15 10:11:49 2021 +0200 @@ -82,7 +82,7 @@ vectorSource.addFeatures([]); } }) - .catch(error => { + .catch(() => { vectorSource.removeLoadedExtent(extent); store.dispatch("application/reportBackendError"); }); @@ -397,7 +397,7 @@ .then(response => { tile.getImage().src = URL.createObjectURL(response.data); }) - .catch(error => { + .catch(() => { store.dispatch("application/reportBackendError"); }); } // TODO tile.setState(TileState.ERROR); @@ -427,7 +427,7 @@ .then(response => { tile.getImage().src = URL.createObjectURL(response.data); }) - .catch(error => { + .catch(() => { store.dispatch("application/reportBackendError"); }); } // TODO tile.setState(TileState.ERROR); @@ -556,7 +556,7 @@ .then(response => { tile.getImage().src = URL.createObjectURL(response.data); }) - .catch(error => { + .catch(() => { store.dispatch("application/reportBackendError"); }); } // TODO tile.setState(TileState.ERROR); @@ -687,7 +687,7 @@ .then(response => { tile.getImage().src = URL.createObjectURL(response.data); }) - .catch(error => { + .catch(() => { store.dispatch("application/reportBackendError"); }); } // TODO tile.setState(TileState.ERROR); @@ -761,7 +761,7 @@ .then(response => { tile.getImage().src = URL.createObjectURL(response.data); }) - .catch(error => { + .catch(() => { store.dispatch("application/reportBackendError"); }); } // TODO tile.setState(TileState.ERROR); diff -r 661af6353d3b -r fb3e127bccb4 client/src/components/map/Map.vue --- a/client/src/components/map/Map.vue Thu Jul 15 09:37:07 2021 +0200 +++ b/client/src/components/map/Map.vue Thu Jul 15 10:11:49 2021 +0200 @@ -35,6 +35,9 @@ * * Thomas Junk * * Bernhard E. Reiter */ + +/*eslint no-unused-vars: ["error", { "argsIgnorePattern": "_" }]*/ + import { HTTP } from "@/lib/http"; import { mapState } from "vuex"; import { Map, View } from "ol"; @@ -46,8 +49,6 @@ import { styles } from "@/components/layers/styles"; import "ol/ol.css"; -/* for the sake of debugging */ -/* eslint-disable no-console */ export default { mixins: [pane], components: { @@ -292,7 +293,7 @@ crossOrigin: "anonymous", params: JSON.parse(this.config.ecdis_wms_params) }); - source.on("imageloaderror", error => { + source.on("imageloaderror", _ => { if (this.ongoingPDFExport) { displayError({ title: this.$gettext("Loading Error"),