Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekradko committed Jan 11, 2025
1 parent cfe7626 commit d187619
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 1,101 deletions.
3 changes: 3 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default tseslint.config([
'vitest.workspace.mjs',
// package specific ignores
'packages/astro/src/astro-components/**/*.ts',
'packages/backend/src/runtime/**/*',
'packages/shared/src/compiled/path-to-regexp/index.js',
],
},
Expand Down Expand Up @@ -98,6 +99,8 @@ export default tseslint.config([
},
],

'import/no-unresolved': ['error', { ignore: ['^#'] }],

'simple-import-sort/imports': 'error',

'sort-imports': 'off',
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/createRedirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ const buildAccountsBaseUrl = (frontendApi?: string) => {
// convert url from FAPI to accounts for Kima and legacy (prod & dev) instances
const accountsBaseUrl = frontendApi
// staging accounts
.replace(/(clerk\.accountsstage\.)/, 'accountsstage.')
.replace(/(clerk\.accounts\.|clerk\.)/, 'accounts.');
.replace(/clerk\.accountsstage\./, 'accountsstage.')
.replace(/clerk\.accounts\.|clerk\./, 'accounts.');
return `https://${accountsBaseUrl}`;
};

Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/tokens/__tests__/keys.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ describe('tokens.loadClerkJWKFromRemote(options)', () => {
kid: 'ins_whatever',
skipJwksCache: true,
});
vi.advanceTimersByTimeAsync(10000);
void vi.advanceTimersByTimeAsync(10000);
await promise;
}).rejects.toThrowError('Error loading Clerk JWKS from https://api.clerk.com/v1/jwks with code=503');
});
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/tokens/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function loadClerkJWKFromLocal(localKey?: string): JsonWebKey {
}

const modulus = localKey
.replace(/(\r\n|\n|\r)/gm, '')
.replace(/\r\n|\n|\r/g, '')
.replace(PEM_HEADER, '')
.replace(PEM_TRAILER, '')
.replace(RSA_PREFIX, '')
Expand Down
1 change: 0 additions & 1 deletion packages/eslint-config-custom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"license": "MIT",
"author": "Clerk",
"dependencies": {
"@vercel/style-guide": "6.0.0",
"any-eslint-parser": "^1.0.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-playwright": "2.1.0",
Expand Down
1 change: 1 addition & 0 deletions packages/expo-passkeys/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line import/namespace
import { Platform } from 'react-native';

import type {
Expand Down
4 changes: 0 additions & 4 deletions packages/nuxt/.eslintrc.cjs

This file was deleted.

1 change: 0 additions & 1 deletion packages/react/src/hooks/__tests__/useAuth.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ describe('useDerivedAuth', () => {
};
renderHook(() => useDerivedAuth(authObject));

// eslint-disable-next-line @typescript-eslint/unbound-method
expect(errorThrower.throw).toHaveBeenCalledWith(invalidStateError);
});

Expand Down
1 change: 0 additions & 1 deletion packages/react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export * from './components';
export * from './contexts';

export * from './hooks';
export { useEmailLink } from './hooks/useEmailLink';
export type { BrowserClerk, ClerkProp, HeadlessBrowserClerk, ClerkProviderProps } from './types';

setErrorThrowerOptions({ packageName: PACKAGE_NAME });
Expand Down
Loading

0 comments on commit d187619

Please sign in to comment.