Skip to content

Commit 2c88eb0

Browse files
committed
second attempt fix lint
1 parent 78ab924 commit 2c88eb0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/google-recaptcha-provider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export function GoogleReCaptchaProvider({
8888
const onLoadCallbackName = scriptProps?.onLoadCallbackName || 'onRecaptchaLoadCallback';
8989

9090
((window as unknown) as {[key: string]: () => void})[onLoadCallbackName] = () => {
91+
/* eslint-disable @typescript-eslint/no-explicit-any */
9192
const grecaptcha = useEnterprise
9293
? (window as any).grecaptcha.enterprise
9394
: (window as any).grecaptcha;

src/utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
interface InjectGoogleReCaptchaScriptParams {
1+
interface IInjectGoogleReCaptchaScriptParams {
22
render: string;
33
onLoadCallbackName: string;
44
useRecaptchaNet: boolean;
@@ -39,7 +39,7 @@ const generateGoogleRecaptchaSrc = ({
3939
*/
4040
const cleanGstaticRecaptchaScript = () => {
4141
const script = document.querySelector(
42-
`script[src^='https://www.gstatic.com/recaptcha/releases']`
42+
'script[src^="https://www.gstatic.com/recaptcha/releases"]'
4343
);
4444

4545
if (script) {
@@ -95,9 +95,9 @@ export const injectGoogleReCaptchaScript = ({
9595
defer = false,
9696
async = false,
9797
id = '',
98-
appendTo = undefined
98+
appendTo
9999
} = {}
100-
}: InjectGoogleReCaptchaScriptParams) => {
100+
}: IInjectGoogleReCaptchaScriptParams) => {
101101
const scriptId = id || 'google-recaptcha-v3';
102102

103103
// Script has already been injected, just call onLoad and does othing else

0 commit comments

Comments
 (0)