Add eslint rules for sonar issues

This commit is contained in:
Bill Thornton 2022-12-16 16:02:11 -05:00
parent 2690b90d84
commit 19f416580c
12 changed files with 45 additions and 30 deletions

View file

@ -1106,7 +1106,7 @@ class ItemsView {
const filters = [];
const params = this.params;
if (!(params.type === 'nextup')) {
if (params.type !== 'nextup') {
if (params.type === 'Programs') {
filters.push('Genres');
} else {

View file

@ -585,7 +585,7 @@ import { setBackdropTransparency, TRANSPARENCY_LEVEL } from '../../../components
if (isEnabled && currentItem) {
const now = new Date().getTime();
if (!(now - lastUpdateTime < 700)) {
if (now - lastUpdateTime >= 700) {
lastUpdateTime = now;
const player = this;
currentRuntimeTicks = playbackManager.duration(player);