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'] }, }