Skip to content

Commit 4dd0370

Browse files
upgraded devdependency and lint and prettier configuration
1 parent ea28f32 commit 4dd0370

11 files changed

Lines changed: 805 additions & 580 deletions

File tree

.prettierrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
bracketSpacing: false,
3-
jsxBracketSameLine: true,
3+
bracketSameLine: true,
44
singleQuote: true,
55
trailingComma: 'all',
66
};

eslint.config.mjs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,7 @@ export default defineConfig([
2020
plugins: { prettier },
2121
rules: {
2222
'react/react-in-jsx-scope': 'off',
23-
'prettier/prettier': [
24-
'error',
25-
{
26-
quoteProps: 'consistent',
27-
singleQuote: true,
28-
tabWidth: 2,
29-
trailingComma: 'es5',
30-
useTabs: false,
31-
},
32-
],
23+
'prettier/prettier': 'error',
3324
},
3425
},
3526
// TypeScript-specific configuration for type-checked rules

example/ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3006,4 +3006,4 @@ SPEC CHECKSUMS:
30063006

30073007
PODFILE CHECKSUM: 4d5858eb0b119123f92cbe4189a696908bcef7aa
30083008

3009-
COCOAPODS: 1.15.2
3009+
COCOAPODS: 1.16.2

example/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@
2626
"@babel/core": "^7.25.2",
2727
"@babel/preset-env": "^7.25.3",
2828
"@babel/runtime": "^7.25.0",
29-
"@react-native-community/cli": "20.0.0",
30-
"@react-native-community/cli-platform-android": "20.0.0",
31-
"@react-native-community/cli-platform-ios": "20.0.0",
29+
"@react-native-community/cli": "20.0.2",
30+
"@react-native-community/cli-platform-android": "20.0.2",
31+
"@react-native-community/cli-platform-ios": "20.0.2",
3232
"@react-native/babel-preset": "0.83.0",
3333
"@react-native/metro-config": "0.83.0",
3434
"@react-native/typescript-config": "0.83.0",
3535
"@types/react": "^19.2.7",
3636
"babel-loader": "^10.0.0",
3737
"babel-plugin-react-native-web": "^0.21.2",
3838
"html-webpack-plugin": "^5.6.5",
39-
"react-native-builder-bob": "^0.40.13",
39+
"react-native-builder-bob": "^0.40.17",
4040
"react-native-monorepo-config": "^0.3.1",
4141
"url-loader": "^4.1.1",
42-
"webpack": "^5.99.9",
42+
"webpack": "^5.104.0",
4343
"webpack-cli": "^6.0.1",
4444
"webpack-dev-server": "^5.2.2"
4545
},

lefthook.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"@commitlint/config-conventional": "^19.8.1",
8686
"@eslint/compat": "^1.3.2",
8787
"@eslint/eslintrc": "^3.3.1",
88-
"@eslint/js": "^9.35.0",
88+
"@eslint/js": "^9.39.2",
8989
"@faker-js/faker": "^9.7.0",
9090
"@react-native-community/cli": "20.0.2",
9191
"@react-native/babel-preset": "0.83.0",
@@ -110,7 +110,7 @@
110110
"eslint-plugin-prettier": "^5.5.4",
111111
"eslint-plugin-react-hooks": "^5.2.0",
112112
"eslint-plugin-react-native": "^5.0.0",
113-
"expo": "^53.0.8",
113+
"expo": "^54.0.29",
114114
"fetch-mock": "^12.5.3",
115115
"husky": "^9.1.7",
116116
"jest": "^29.7.0",
@@ -120,13 +120,13 @@
120120
"minami": "^1.2.3",
121121
"node-fetch": "^3.3.2",
122122
"pod-install": "^0.3.9",
123-
"prettier": "^2.8.8",
123+
"prettier": "^3.7.4",
124124
"prettier-plugin-organize-imports": "4.3.0",
125125
"pretty-quick": "^4.2.2",
126126
"react": "19.2.3",
127127
"react-dom": "19.2.3",
128128
"react-native": "0.83.0",
129-
"react-native-builder-bob": "^0.40.13",
129+
"react-native-builder-bob": "^0.40.17",
130130
"release-it": "^19.0.4",
131131
"semver": "^7.7.2",
132132
"typedoc": "^0.28.2",

src/platforms/native/adapters/NativeWebAuthProvider.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ const webAuthNotSupported = 'This Method is only available in web platform.';
2121
* This class translates web authentication calls into calls to the native bridge.
2222
*/
2323
export class NativeWebAuthProvider implements IWebAuthProvider {
24-
constructor(private bridge: INativeBridge, private domain: string) {}
24+
constructor(
25+
private bridge: INativeBridge,
26+
private domain: string
27+
) {}
2528
handleRedirectCallback(): Promise<void> {
2629
throw new AuthError('NotImplemented', webAuthNotSupported);
2730
}

src/platforms/native/bridge/NativeBridgeManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ export class NativeBridgeManager implements INativeBridge {
8080
options: NativeAuthorizeOptions
8181
): Promise<Credentials> {
8282
let presentationStyle = options.useSFSafariViewController
83-
? (options.useSFSafariViewController as { presentationStyle: number })
83+
? ((options.useSFSafariViewController as { presentationStyle: number })
8484
?.presentationStyle ??
85-
SafariViewControllerPresentationStyle.fullScreen
85+
SafariViewControllerPresentationStyle.fullScreen)
8686
: undefined;
8787
const scheme =
8888
parameters.redirectUrl?.split('://')[0] ?? options.customScheme;

src/platforms/web/adapters/__tests__/WebAuth0Client.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ describe('WebAuth0Client', () => {
9494
// Setup mock implementations
9595
MockAuth0Client.mockImplementation(() => mockSpaClient);
9696
MockHttpClient.mockImplementation(() => mockHttpClient);
97-
MockAuthenticationOrchestrator.mockImplementation(() => ({} as any));
98-
MockManagementApiOrchestrator.mockImplementation(() => ({} as any));
99-
MockWebWebAuthProvider.mockImplementation(() => ({} as any));
100-
MockWebCredentialsManager.mockImplementation(() => ({} as any));
97+
MockAuthenticationOrchestrator.mockImplementation(() => ({}) as any);
98+
MockManagementApiOrchestrator.mockImplementation(() => ({}) as any);
99+
MockWebWebAuthProvider.mockImplementation(() => ({}) as any);
100+
MockWebCredentialsManager.mockImplementation(() => ({}) as any);
101101

102102
client = new WebAuth0Client(defaultOptions);
103103
});

tsconfig.build.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
{
22
"extends": "./tsconfig",
3-
"exclude": ["example", "lib"]
3+
"exclude": [
4+
"example",
5+
"lib",
6+
"docs",
7+
"scripts",
8+
"babel.config.js",
9+
"jest.environment.js"
10+
]
411
}

0 commit comments

Comments
 (0)