changeset 5457:fb3e127bccb4 uiimprovements

fixed linting errors
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 15 Jul 2021 10:11:49 +0200
parents 661af6353d3b
children d6a547f3af71
files client/src/components/layers/layers.js client/src/components/map/Map.vue
diffstat 2 files changed, 10 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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 <thomas.junk@intevation.de>
  * * Bernhard E. Reiter <bernhard.reiter@intevation.de>
  */
+
+/*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"),