Skip to content

Commit 12b2e90

Browse files
committed
fix: lint errors
1 parent 304e4db commit 12b2e90

File tree

4 files changed

+38
-38
lines changed

4 files changed

+38
-38
lines changed

injected/src/features/broker-protection/captcha-services/providers/cloudflare-turnstile.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ export class CloudFlareTurnstileProvider {
1010
}
1111

1212
/**
13-
* @param {HTMLElement} captchaContainerElement
13+
* @param {HTMLElement} _captchaContainerElement
1414
*/
15-
isSupportedForElement(captchaContainerElement) {
15+
isSupportedForElement(_captchaContainerElement) {
1616
// TODO: Implement
1717
return false;
1818
}
1919

2020
/**
21-
* @param {HTMLElement} captchaContainerElement - The element containing the captcha
21+
* @param {HTMLElement} _captchaContainerElement - The element containing the captcha
2222
*/
23-
getCaptchaIdentifier(captchaContainerElement) {
23+
getCaptchaIdentifier(_captchaContainerElement) {
2424
// TODO: Implement
2525
return null;
2626
}
@@ -31,27 +31,27 @@ export class CloudFlareTurnstileProvider {
3131
}
3232

3333
/**
34-
* @param {HTMLElement} captchaContainerElement - The element containing the captcha
34+
* @param {HTMLElement} _captchaContainerElement - The element containing the captcha
3535
*/
36-
canSolve(captchaContainerElement) {
36+
canSolve(_captchaContainerElement) {
3737
// TODO: Implement
3838
return false;
3939
}
4040

4141
/**
42-
* @param {HTMLElement} captchaContainerElement - The element containing the captcha
43-
* @param {string} token - The solved captcha token
42+
* @param {HTMLElement} _captchaContainerElement - The element containing the captcha
43+
* @param {string} _token - The solved captcha token
4444
*/
45-
injectToken(captchaContainerElement, token) {
45+
injectToken(_captchaContainerElement, _token) {
4646
// TODO: Implement
4747
return PirError.create('Not implemented');
4848
}
4949

5050
/**
51-
* @param {HTMLElement} captchaContainerElement - The element containing the captcha
52-
* @param {string} token - The solved captcha token
51+
* @param {HTMLElement} _captchaContainerElement - The element containing the captcha
52+
* @param {string} _token - The solved captcha token
5353
*/
54-
getSolveCallback(captchaContainerElement, token) {
54+
getSolveCallback(_captchaContainerElement, _token) {
5555
return null;
5656
}
5757
}

injected/src/features/broker-protection/captcha-services/providers/hcaptcha.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ export class HCaptchaProvider {
1010
}
1111

1212
/**
13-
* @param {HTMLElement} captchaContainerElement - The element to check
13+
* @param {HTMLElement} _captchaContainerElement - The element to check
1414
*/
15-
isSupportedForElement(captchaContainerElement) {
15+
isSupportedForElement(_captchaContainerElement) {
1616
// TODO: Implement
1717
return false;
1818
}
1919

2020
/**
21-
* @param {HTMLElement} captchaContainerElement - The element containing the captcha
21+
* @param {HTMLElement} _captchaContainerElement - The element containing the captcha
2222
*/
23-
getCaptchaIdentifier(captchaContainerElement) {
23+
getCaptchaIdentifier(_captchaContainerElement) {
2424
// TODO: Implement
2525
return null;
2626
}
@@ -31,27 +31,27 @@ export class HCaptchaProvider {
3131
}
3232

3333
/**
34-
* @param {HTMLElement} captchaContainerElement - The element containing the captcha
34+
* @param {HTMLElement} _captchaContainerElement - The element containing the captcha
3535
*/
36-
canSolve(captchaContainerElement) {
36+
canSolve(_captchaContainerElement) {
3737
// TODO: Implement
3838
return false;
3939
}
4040

4141
/**
42-
* @param {HTMLElement} captchaContainerElement - The element containing the captcha
43-
* @param {string} token - The solved captcha token
42+
* @param {HTMLElement} _captchaContainerElement - The element containing the captcha
43+
* @param {string} _token - The solved captcha token
4444
*/
45-
injectToken(captchaContainerElement, token) {
45+
injectToken(_captchaContainerElement, _token) {
4646
// TODO: Implement
4747
return PirError.create('Not implemented');
4848
}
4949

5050
/**
51-
* @param {HTMLElement} captchaContainerElement - The element containing the captcha
52-
* @param {string} token - The solved captcha token
51+
* @param {HTMLElement} _captchaContainerElement - The element containing the captcha
52+
* @param {string} _token - The solved captcha token
5353
*/
54-
getSolveCallback(captchaContainerElement, token) {
54+
getSolveCallback(_captchaContainerElement, _token) {
5555
return null;
5656
}
5757
}

injected/src/features/broker-protection/captcha-services/providers/provider.interface.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ export class CaptchaProvider {
1717
/**
1818
* Checks if this provider supports the given element
1919
* @abstract
20-
* @param {HTMLElement} captchaContainerElement - The element containing the captcha
20+
* @param {HTMLElement} _captchaContainerElement - The element containing the captcha
2121
* @returns {boolean} True if this provider can handle the element
2222
*/
23-
isSupportedForElement(captchaContainerElement) {
23+
isSupportedForElement(_captchaContainerElement) {
2424
throw new Error('isSupportedForElement() missing implementation');
2525
}
2626

2727
/**
2828
* Extracts the site key from the captcha container element
2929
* @abstract
30-
* @param {HTMLElement} captchaContainerElement - The element containing the captcha
30+
* @param {HTMLElement} _captchaContainerElement - The element containing the captcha
3131
* @returns {PirError | string | null} The site key or null if not found
3232
*/
33-
getCaptchaIdentifier(captchaContainerElement) {
33+
getCaptchaIdentifier(_captchaContainerElement) {
3434
throw new Error('getCaptchaIdentifier() missing implementation');
3535
}
3636

@@ -45,32 +45,32 @@ export class CaptchaProvider {
4545
/**
4646
* Checks if this provider can solve the captcha on the current page
4747
* @abstract
48-
* @param {HTMLElement} captchaContainerElement - The element containing the captcha
48+
* @param {HTMLElement} _captchaContainerElement - The element containing the captcha
4949
* @returns {boolean} True if provider can solve captchas found in the document
5050
*/
51-
canSolve(captchaContainerElement) {
51+
canSolve(_captchaContainerElement) {
5252
throw new Error('canSolve() missing implementation');
5353
}
5454

5555
/**
5656
* Injects the solved token into the captcha on the page
5757
* @abstract
58-
* @param {HTMLElement} captchaContainerElement - The element containing the captcha
59-
* @param {string} token - The solved captcha token
58+
* @param {HTMLElement} _captchaContainerElement - The element containing the captcha
59+
* @param {string} _token - The solved captcha token
6060
* @returns {PirResponse<{ injected: boolean }>} - Whether the token was injected
6161
*/
62-
injectToken(captchaContainerElement, token) {
62+
injectToken(_captchaContainerElement, _token) {
6363
throw new Error('injectToken() missing implementation');
6464
}
6565

6666
/**
6767
* Creates a callback function to execute when the captcha is solved
6868
* @abstract
69-
* @param {HTMLElement} captchaContainerElement - The element containing the captcha
70-
* @param {string} token - The solved captcha token
69+
* @param {HTMLElement} _captchaContainerElement - The element containing the captcha
70+
* @param {string} _token - The solved captcha token
7171
* @returns {PirError|string|null} Callback function to execute when the captcha is solved
7272
*/
73-
getSolveCallback(captchaContainerElement, token) {
73+
getSolveCallback(_captchaContainerElement, _token) {
7474
throw new Error('getSolveCallback() missing implementation');
7575
}
7676
}

injected/src/features/broker-protection/captcha-services/providers/recaptcha.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ export class ReCaptchaProvider {
5757
}
5858

5959
/**
60-
* @param {HTMLElement} captchaContainerElement - The element containing the captcha
60+
* @param {HTMLElement} _captchaContainerElement - The element containing the captcha
6161
* @param {string} token
6262
*/
63-
getSolveCallback(captchaContainerElement, token) {
63+
getSolveCallback(_captchaContainerElement, token) {
6464
return stringifyFunction({
6565
functionBody: captchaCallback,
6666
functionName: 'captchaCallback',

0 commit comments

Comments
 (0)