Skip to content

Commit eb3e46b

Browse files
committed
Fix lint errors in @clerk/expo spec files and imports
1 parent ddc58d3 commit eb3e46b

8 files changed

Lines changed: 14 additions & 12 deletions

File tree

packages/expo/src/google-one-tap/ClerkGoogleOneTapSignIn.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import NativeClerkGoogleSignIn from '../specs/NativeClerkGoogleSignIn';
2-
32
import type {
43
CancelledResponse,
54
ConfigureParams,

packages/expo/src/native/InlineAuthView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as SecureStore from 'expo-secure-store';
22
import { useCallback, useEffect, useRef } from 'react';
3-
import { type StyleProp, StyleSheet, Text, View, type ViewStyle, Platform } from 'react-native';
3+
import { Platform, type StyleProp, StyleSheet, Text, View, type ViewStyle } from 'react-native';
44

55
import { getClerkInstance } from '../provider/singleton';
66
import NativeClerkAuthView from '../specs/NativeClerkAuthView';

packages/expo/src/native/InlineUserProfileView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useClerk } from '@clerk/react';
22
import { useCallback, useRef } from 'react';
3-
import { type StyleProp, StyleSheet, Text, View, type ViewStyle, Platform } from 'react-native';
3+
import { Platform, type StyleProp, StyleSheet, Text, View, type ViewStyle } from 'react-native';
44

55
import NativeClerkModule from '../specs/NativeClerkModule';
66
import NativeClerkUserProfileView from '../specs/NativeClerkUserProfileView';

packages/expo/src/provider/singleton/createClerkInstance.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ export function createClerkInstance(ClerkClass: typeof Clerk) {
201201
});
202202
}
203203
// At this point __internal_clerk is guaranteed to be defined
204-
205-
return __internal_clerk!;
204+
return __internal_clerk;
206205
};
207206
}

packages/expo/src/specs/NativeClerkAuthView.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
// eslint-disable-next-line simple-import-sort/imports, import/namespace, import/default, import/no-named-as-default, import/no-named-as-default-member
12
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
23
import type { HostComponent, ViewProps } from 'react-native';
4+
// eslint-disable-next-line import/namespace
35
import type { BubblingEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
46

57
type AuthEvent = Readonly<{ type: string; data: string }>;

packages/expo/src/specs/NativeClerkGoogleSignIn.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import type { TurboModule } from 'react-native';
22
import { TurboModuleRegistry } from 'react-native';
33

44
export interface Spec extends TurboModule {
5-
configure(params: Object): void;
6-
signIn(params: Object | null): Promise<Object>;
7-
createAccount(params: Object | null): Promise<Object>;
8-
presentExplicitSignIn(params: Object | null): Promise<Object>;
5+
configure(params: object): void;
6+
signIn(params: object | null): Promise<object>;
7+
createAccount(params: object | null): Promise<object>;
8+
presentExplicitSignIn(params: object | null): Promise<object>;
99
signOut(): Promise<void>;
1010
}
1111

packages/expo/src/specs/NativeClerkModule.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { TurboModuleRegistry } from 'react-native';
33

44
export interface Spec extends TurboModule {
55
configure(publishableKey: string, bearerToken: string | null): Promise<void>;
6-
presentAuth(options: Object): Promise<Object>;
7-
presentUserProfile(options: Object): Promise<Object | null>;
8-
getSession(): Promise<Object | null>;
6+
presentAuth(options: object): Promise<object>;
7+
presentUserProfile(options: object): Promise<object | null>;
8+
getSession(): Promise<object | null>;
99
getClientToken(): Promise<string | null>;
1010
signOut(): Promise<void>;
1111
}

packages/expo/src/specs/NativeClerkUserProfileView.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
// eslint-disable-next-line simple-import-sort/imports, import/namespace, import/default, import/no-named-as-default, import/no-named-as-default-member
12
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
23
import type { HostComponent, ViewProps } from 'react-native';
4+
// eslint-disable-next-line import/namespace
35
import type { BubblingEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
46

57
type ProfileEvent = Readonly<{ type: string; data: string }>;

0 commit comments

Comments
 (0)