From 87ce5c1a8e993bede466a0f1130d0e3d9f59659a Mon Sep 17 00:00:00 2001 From: dm5wk Date: Fri, 24 May 2024 18:47:12 +0200 Subject: [PATCH] eslint fixes --- .eslintrc | 3 ++- band-plan.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index 1d6e0d5..ea764bf 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,6 +1,7 @@ { "env": { - "browser": true + "browser": true, + "es6": true }, "extends": "eslint:recommended", "parserOptions": { diff --git a/band-plan.html b/band-plan.html index e24326b..42d5162 100644 --- a/band-plan.html +++ b/band-plan.html @@ -162,7 +162,7 @@ div#togglebuttons>button { autoColumnsDefinitions: function(definitions){ definitions.forEach((column) => { if (column.field == "band") { - column.sorter = function(a, b, aRow, bRow, column, dir, sorterParams) { + column.sorter = function(a, b) { return parseFloat(new Measures().from(a).to('m')) - parseFloat(new Measures().from(b).to('m')); } }