From 6db5efe2c896044e26b8f3ab2c105cf69d6e0e06 Mon Sep 17 00:00:00 2001 From: Kristjan ESPERANTO <35647502+KristjanESPERANTO@users.noreply.github.com> Date: Mon, 9 Dec 2024 00:44:21 +0100 Subject: [PATCH] Disable @stylistic/no-extra-parens --- MMM-pages.js | 2 +- eslint.config.mjs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MMM-pages.js b/MMM-pages.js index 4e182a1..9883345 100644 --- a/MMM-pages.js +++ b/MMM-pages.js @@ -34,7 +34,7 @@ Module.register('MMM-pages', { * @param {number} n The divisor */ mod (x, n) { - return (x % n + n) % n; + return ((x % n) + n) % n; }, /** diff --git a/eslint.config.mjs b/eslint.config.mjs index 95d1bf9..2e4fea2 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -33,6 +33,7 @@ const config = [ '@stylistic/quotes': ['error', 'single'], '@stylistic/multiline-comment-style': 'off', '@stylistic/multiline-ternary': 'off', + '@stylistic/no-extra-parens': 'off', 'object-shorthand': ['error', 'always'] }, }