From 18ad2523403a553130dbb286a5b197b2e6913d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 18 Oct 2023 11:42:20 +0200 Subject: [PATCH] MOBILE-4362 lint: Fix some linting --- src/addons/mod/imscp/services/imscp.ts | 2 +- src/addons/mod/lti/services/lti-helper.ts | 1 - src/addons/mod/survey/services/survey.ts | 2 +- .../features/pushnotifications/services/pushnotifications.ts | 2 -- src/core/services/app.ts | 1 + src/core/singletons/directives-registry.ts | 1 + 6 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/addons/mod/imscp/services/imscp.ts b/src/addons/mod/imscp/services/imscp.ts index f71cf1193..304ff4ff2 100644 --- a/src/addons/mod/imscp/services/imscp.ts +++ b/src/addons/mod/imscp/services/imscp.ts @@ -274,7 +274,7 @@ export class AddonModImscpProvider { * @param siteId Site ID. If not defined, current site. * @returns Promise resolved when the WS call is successful. */ - async logView(id: number, name?: string, siteId?: string): Promise { + async logView(id: number, siteId?: string): Promise { const params: AddonModImscpViewImscpWSParams = { imscpid: id, }; diff --git a/src/addons/mod/lti/services/lti-helper.ts b/src/addons/mod/lti/services/lti-helper.ts index 9b0ab35e7..b6d410377 100644 --- a/src/addons/mod/lti/services/lti-helper.ts +++ b/src/addons/mod/lti/services/lti-helper.ts @@ -104,7 +104,6 @@ export class AddonModLtiHelperProvider { * @param courseId Course ID. * @param module Module. * @param ltiId LTI id. - * @param name Name of the lti. * @param siteId Site ID. If not defined, current site. * @returns Promise resolved when done. */ diff --git a/src/addons/mod/survey/services/survey.ts b/src/addons/mod/survey/services/survey.ts index 4a7202356..8786e7d0e 100644 --- a/src/addons/mod/survey/services/survey.ts +++ b/src/addons/mod/survey/services/survey.ts @@ -211,7 +211,7 @@ export class AddonModSurveyProvider { * @param siteId Site ID. If not defined, current site. * @returns Promise resolved when the WS call is successful. */ - async logView(id: number, name?: string, siteId?: string): Promise { + async logView(id: number, siteId?: string): Promise { const params: AddonModSurveyViewSurveyWSParams = { surveyid: id, }; diff --git a/src/core/features/pushnotifications/services/pushnotifications.ts b/src/core/features/pushnotifications/services/pushnotifications.ts index 16edd45f3..ac98d0e9b 100644 --- a/src/core/features/pushnotifications/services/pushnotifications.ts +++ b/src/core/features/pushnotifications/services/pushnotifications.ts @@ -370,7 +370,6 @@ export class CorePushNotificationsProvider { * @param itemCategory The item category. * @param wsName Name of the WS. * @param data Other data to pass to the event. - * @param siteId Site ID. If not defined, current site. * @returns Promise resolved when done. This promise is never rejected. * @deprecated since 4.3. Use CoreAnalytics.logEvent instead. */ @@ -396,7 +395,6 @@ export class CorePushNotificationsProvider { * @param itemCategory The item category. * @param wsName Name of the WS. * @param data Other data to pass to the event. - * @param siteId Site ID. If not defined, current site. * @returns Promise resolved when done. This promise is never rejected. * @deprecated since 4.3. Use CoreAnalytics.logEvent instead. */ diff --git a/src/core/services/app.ts b/src/core/services/app.ts index fb4562d58..0a4f9031e 100644 --- a/src/core/services/app.ts +++ b/src/core/services/app.ts @@ -617,6 +617,7 @@ export class CoreAppProvider { this.logger.debug(`Set navigation bar color ${color}`); + // eslint-disable-next-line @typescript-eslint/no-explicit-any ( window).StatusBar.navigationBackgroundColorByHexString(color); } diff --git a/src/core/singletons/directives-registry.ts b/src/core/singletons/directives-registry.ts index a1b17e5b1..a246ed822 100644 --- a/src/core/singletons/directives-registry.ts +++ b/src/core/singletons/directives-registry.ts @@ -105,6 +105,7 @@ export class CoreDirectivesRegistry { * Get all directive instances and wait to be ready. * * @param element Root element. + * @param selector If defined, CSS Selector to wait for. * @param directiveClass Directive class. * @returns Promise resolved when done. */