Disable @stylistic/no-extra-parens

This commit is contained in:
Kristjan ESPERANTO 2024-12-09 00:44:21 +01:00
parent 361f55bec1
commit 6db5efe2c8
2 changed files with 2 additions and 1 deletions

View file

@ -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;
},
/**

View file

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