Apply linting rules

This commit is contained in:
Kristjan ESPERANTO 2024-12-06 09:33:38 +01:00
parent a7df09cf79
commit d32466ce2c

View file

@ -37,7 +37,7 @@ Module.register('MMM-pages', {
* @param {number} n The divisor
*/
mod: function (x, n) {
return ((x % n) + n) % n;
return (x % n + n) % n;
},
/**
@ -216,13 +216,13 @@ Module.register('MMM-pages', {
MM.getModules()
.exceptWithClass(modulesToShow)
.enumerate(module => module.hide(animationTime, lockStringObj));
.enumerate((module) => module.hide(animationTime, lockStringObj));
// Shows all modules meant to be on the current page, after a small delay.
setTimeout(() => {
MM.getModules()
.withClass(modulesToShow)
.enumerate(module => module.show(animationTime, lockStringObj));
.enumerate((module) => module.show(animationTime, lockStringObj));
}, animationTime);
},
@ -276,7 +276,7 @@ Module.register('MMM-pages', {
* @param {boolean} isRotating the parameter, if you want to pause or resume.
*/
setRotation: function (isRotating) {
const stateBaseString = (isRotating) ? "resum" : "paus";
const stateBaseString = isRotating ? 'resum' : 'paus';
if (isRotating === this.rotationPaused) {
Log.warn(`[MMM-pages] was asked to ${stateBaseString}e but rotation is already ${stateBaseString}ed!`);
} else {