Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zoton2 committed Jan 3, 2025
1 parent 393cacb commit 77bdf78
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/dashboard/_misc/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Alert } from "@nodecg-speedcontrol/types";
import { Alert } from '@nodecg-speedcontrol/types';

/**
* Checks if number needs a 0 adding to the start and does so if needed.
Expand Down
3 changes: 2 additions & 1 deletion src/dashboard/alert-dialog/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ export default class extends Vue {
if (this.callbackFunc) {
this.callbackFunc(confirm);
}
(this.dialog as any)._updateClosingReasonConfirmed(confirm); // eslint-disable-line no-underscore-dangle
// eslint-disable-next-line no-underscore-dangle, @typescript-eslint/no-explicit-any
(this.dialog as any)._updateClosingReasonConfirmed(confirm);
this.dialog?.close();
this.currentComponent = null;
this.alertData = {};
Expand Down
3 changes: 2 additions & 1 deletion src/dashboard/run-modification-dialog/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ export default class extends Vue {
}
close(confirm: boolean): void {
(this.dialog as any)._updateClosingReasonConfirmed(confirm); // eslint-disable-line no-underscore-dangle
// eslint-disable-next-line no-underscore-dangle, @typescript-eslint/no-explicit-any
(this.dialog as any)._updateClosingReasonConfirmed(confirm);
this.dialog?.close();
}
Expand Down
1 change: 0 additions & 1 deletion src/extension/run-control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ async function removeRun(id?: string): Promise<void> {
} else {
runDataArray.value.splice(runIndex, 1);
nodecg.log.debug(`[Run Control] Successfully removed run ${id}`);
return;
}
} catch (err) {
nodecg.log.debug('[Run Control] Could not successfully remove run:', err);
Expand Down
3 changes: 2 additions & 1 deletion src/extension/util/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ export function checkGameAgainstIgnoreList(
const list = service === 'horaro'
? (nodecg.bundleConfig.horaro || nodecg.bundleConfig.schedule).ignoreGamesWhileImporting || []
: nodecg.bundleConfig.oengus.ignoreGamesWhileImporting
|| (nodecg.bundleConfig.horaro || nodecg.bundleConfig.schedule).ignoreGamesWhileImporting || [];
|| (nodecg.bundleConfig.horaro || nodecg.bundleConfig.schedule)
.ignoreGamesWhileImporting || [];
return !!list.find((str) => !!str.toLowerCase().match(
new RegExp(`\\b${_.escapeRegExp(game.toLowerCase())}\\b`),
));
Expand Down

0 comments on commit 77bdf78

Please sign in to comment.