diff --git a/src/addons/mod/assign/classes/submissions-source.ts b/src/addons/mod/assign/classes/submissions-source.ts index 273867191..5e6aae5e8 100644 --- a/src/addons/mod/assign/classes/submissions-source.ts +++ b/src/addons/mod/assign/classes/submissions-source.ts @@ -259,4 +259,4 @@ export enum AddonModAssignListFilterName { NEED_GRADING = 'needgrading', DRAFT = 'draft', SUBMITTED = 'submitted', -}; +} diff --git a/src/addons/mod/assign/services/assign.ts b/src/addons/mod/assign/services/assign.ts index c09110175..0bb3f8bac 100644 --- a/src/addons/mod/assign/services/assign.ts +++ b/src/addons/mod/assign/services/assign.ts @@ -1825,7 +1825,7 @@ export enum AddonModAssignSubmissionStatusValues { NO_ONLINE_SUBMISSIONS = 'noonlinesubmissions', NO_SUBMISSION = 'nosubmission', GRADED_FOLLOWUP_SUBMIT = 'gradedfollowupsubmit', -}; +} /** * Grading status. @@ -1837,7 +1837,7 @@ export enum AddonModAssignGradingStates { // Added by App Statuses. MARKING_WORKFLOW_STATE_RELEASED = 'released', // with ASSIGN_MARKING_WORKFLOW_STATE_RELEASED GRADED_FOLLOWUP_SUBMIT = 'gradedfollowupsubmit', -}; +} /** * Reopen attempt methods. @@ -1847,4 +1847,4 @@ export enum AddonModAssignAttemptReopenMethodValues { NONE = 'none', MANUAL = 'manual', UNTILPASS = 'untilpass', -}; +} diff --git a/src/addons/qtype/ddimageortext/classes/ddimageortext.ts b/src/addons/qtype/ddimageortext/classes/ddimageortext.ts index c13ce8ddc..ad3dc527b 100644 --- a/src/addons/qtype/ddimageortext/classes/ddimageortext.ts +++ b/src/addons/qtype/ddimageortext/classes/ddimageortext.ts @@ -856,4 +856,4 @@ export class AddonQtypeDdImageOrTextQuestionDocStructure { return divDrag; } -}; +} diff --git a/src/core/classes/page-transition.ts b/src/core/classes/page-transition.ts index 4260515e0..af2b81639 100644 --- a/src/core/classes/page-transition.ts +++ b/src/core/classes/page-transition.ts @@ -44,7 +44,7 @@ export interface TransitionOptions extends NavOptions { baseEl: HTMLElement; enteringEl: HTMLElement; leavingEl: HTMLElement | undefined; -}; +} export const shadow = (el: T): ShadowRoot | T => el.shadowRoot || el; diff --git a/src/core/classes/site.ts b/src/core/classes/site.ts index f265323d4..cdd509929 100644 --- a/src/core/classes/site.ts +++ b/src/core/classes/site.ts @@ -2410,7 +2410,7 @@ export enum CoreSiteInfoUserHomepage { HOMEPAGE_SITE = 0, // Site home. HOMEPAGE_MY = 1, // Dashboard. HOMEPAGE_MYCOURSES = 3, // My courses. -}; +} /** * Result of WS tool_mobile_get_config. diff --git a/src/core/components/message/message.ts b/src/core/components/message/message.ts index 818638aef..5247e54cd 100644 --- a/src/core/components/message/message.ts +++ b/src/core/components/message/message.ts @@ -56,7 +56,7 @@ export class CoreMessageComponent implements OnInit { @HostBinding('class.no-user') get showUser(): boolean { return !this.message?.showUserData; - }; + } get userId(): number | undefined { return this.user && (this.user.userid || this.user.id); diff --git a/src/core/constants.ts b/src/core/constants.ts index e09712c7b..29bfb001f 100644 --- a/src/core/constants.ts +++ b/src/core/constants.ts @@ -36,7 +36,7 @@ export const enum ModPurpose { MOD_PURPOSE_ADMINISTRATION = 'administration', MOD_PURPOSE_INTERFACE = 'interface', MOD_PURPOSE_OTHER = 'other', -}; +} /** * Static class to contain all the core constants. @@ -168,4 +168,4 @@ interface EnvironmentBuild { isDevelopment: boolean; lastCommitHash: string; compilationTime: number; -}; +} diff --git a/src/core/features/courses/services/handlers/course-link.ts b/src/core/features/courses/services/handlers/course-link.ts index 0bd9d0229..748d33cdf 100644 --- a/src/core/features/courses/services/handlers/course-link.ts +++ b/src/core/features/courses/services/handlers/course-link.ts @@ -194,7 +194,7 @@ export class CoreCoursesCourseLinkHandlerService extends CoreContentLinksHandler CoreSites.getCurrentSite()?.openInBrowserWithAutoLogin(url, undefined, { showBrowserWarning: false }); } catch { // User cancelled. - }; + } throw new CoreError(notEnrolledMessage); } diff --git a/src/core/services/geolocation.ts b/src/core/services/geolocation.ts index 428726df1..79758c0be 100644 --- a/src/core/services/geolocation.ts +++ b/src/core/services/geolocation.ts @@ -185,4 +185,4 @@ interface GeolocationPositionError { PERMISSION_DENIED: number; // eslint-disable-line @typescript-eslint/naming-convention POSITION_UNAVAILABLE: number; // eslint-disable-line @typescript-eslint/naming-convention TIMEOUT: number; // eslint-disable-line @typescript-eslint/naming-convention -}; +} diff --git a/src/core/services/network.ts b/src/core/services/network.ts index 72f9ec98f..d9084bc4a 100644 --- a/src/core/services/network.ts +++ b/src/core/services/network.ts @@ -27,7 +27,7 @@ export enum CoreNetworkConnection { CELL_4G = '4g', CELL = 'cellular', NONE = 'none', -}; +} /** * Service to manage network connections. diff --git a/src/core/singletons/colors.ts b/src/core/singletons/colors.ts index 6f734bf14..a208fc0d1 100644 --- a/src/core/singletons/colors.ts +++ b/src/core/singletons/colors.ts @@ -35,7 +35,7 @@ export enum CoreIonicColorNames { MEDIUM = 'medium', LIGHT = 'light', NONE = '', -}; +} /** * Singleton with helper functions for colors. diff --git a/src/core/singletons/locutus.ts b/src/core/singletons/locutus.ts index be8b74d97..fd792ffd0 100644 --- a/src/core/singletons/locutus.ts +++ b/src/core/singletons/locutus.ts @@ -444,4 +444,4 @@ export class Locutus { return substr_replace(str, replace, start, length); } -}; +} diff --git a/src/testing/services/behat-dom.ts b/src/testing/services/behat-dom.ts index fed631c74..c856d44a0 100644 --- a/src/testing/services/behat-dom.ts +++ b/src/testing/services/behat-dom.ts @@ -71,7 +71,7 @@ export class TestingBehatDomUtilsService { } return this.isElementSelected(parentElement, container); - }; + } /** * Finds elements within a given container with exact info. @@ -180,7 +180,7 @@ export class TestingBehatDomUtilsService { } return elements; - }; + } /** * Checks an element has exactly the same label (title, alt or aria-label). @@ -215,7 +215,7 @@ export class TestingBehatDomUtilsService { elements.sort((a, b) => Number(b.exact) - Number(a.exact)); return elements.map(element => element.element); - }; + } /** * Given a list of elements, get the top ancestors among all of them. @@ -273,7 +273,7 @@ export class TestingBehatDomUtilsService { } return this.getClosestMatching(element.parentElement, selector, container); - }; + } /** * Function to find top container elements. @@ -339,7 +339,7 @@ export class TestingBehatDomUtilsService { }); return topContainers; - }; + } /** * Function to find element based on their text or Aria label. @@ -463,7 +463,7 @@ export class TestingBehatDomUtilsService { } while (container !== topContainer && (container = this.getParentElement(container)) && container !== topContainer); return []; - }; + } /** * Make sure that an element is visible and wait to trigger the callback. @@ -492,7 +492,7 @@ export class TestingBehatDomUtilsService { }); return promise; - }; + } /** * Press an element. diff --git a/src/testing/utils.ts b/src/testing/utils.ts index 44624a5f2..18da2b091 100644 --- a/src/testing/utils.ts +++ b/src/testing/utils.ts @@ -31,7 +31,7 @@ abstract class WrapperComponent { child!: U; -}; +} type ServiceInjectionToken = AbstractType | Type | string;