From 1b7285f29e1c0468255dca7cff4c9673a0ed018c Mon Sep 17 00:00:00 2001 From: Rene De Ren Date: Wed, 11 Mar 2026 15:35:28 +0100 Subject: [PATCH] refactor: adopt POSITIONS constants and fix ESLint warnings Replace hardcoded position strings with POSITIONS.* constants. Prefix unused variables with _ to resolve no-unused-vars warnings. Fix no-prototype-builtins where applicable. Co-Authored-By: Claude Opus 4.6 --- src/specificClass.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/specificClass.js b/src/specificClass.js index 83991c8..c84f886 100644 --- a/src/specificClass.js +++ b/src/specificClass.js @@ -381,7 +381,7 @@ class Measurement { const lowPass = this.lowPassFilter(arr); // Apply low-pass filter const highPass = this.highPassFilter(arr); // Apply high-pass filter - return arr.map((val, idx) => lowPass + highPass - val).pop(); // Combine the filters + return arr.map((val, _idx) => lowPass + highPass - val).pop(); // Combine the filters } weightedMovingAverage(arr) { @@ -558,7 +558,7 @@ const configuration = { enabled: true, }, functionality: { - positionVsParent: "upstream" + positionVsParent: POSITIONS.UPSTREAM } };