Skip to content

Commit 81d4df1

Browse files
chore(repo): Update linting & formatting (#8271)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jacek <jacek@clerk.dev>
1 parent 42c0f0e commit 81d4df1

File tree

7 files changed

+70
-69
lines changed

7 files changed

+70
-69
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ playground
2121
packages/backend/tests/**/*.js
2222
packages/clerk-js/src/core/resources/internal.ts
2323
packages/clerk-js/src/core/resources/index.ts
24+
packages/shared/src/compiled
2425
/**/CHANGELOG.md
2526
renovate.json5

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
},
7272
"devDependencies": {
7373
"@actions/core": "^1.11.1",
74-
"@arethetypeswrong/cli": "0.17.4",
74+
"@arethetypeswrong/cli": "0.18.2",
7575
"@changesets/cli": "^2.29.4",
7676
"@changesets/get-github-info": "^0.6.0",
7777
"@clerk/backend": "workspace:*",
@@ -126,11 +126,11 @@
126126
"jsonwebtoken": "9.0.2",
127127
"lint-staged": "^14.0.1",
128128
"pkglab": "0.17.1",
129-
"prettier": "^3.6.2",
129+
"prettier": "^3.8.1",
130130
"prettier-plugin-astro": "^0.14.1",
131131
"prettier-plugin-packagejson": "^2.5.15",
132132
"prettier-plugin-tailwindcss": "^0.6.12",
133-
"publint": "^0.3.12",
133+
"publint": "^0.3.18",
134134
"react": "catalog:react",
135135
"react-dom": "catalog:react",
136136
"rimraf": "6.0.1",

packages/clerk-js/src/core/resources/UserSettings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ export class UserSettings extends BaseResource implements UserSettingsResource {
196196
get hasValidAuthFactor() {
197197
return Boolean(
198198
this.attributes?.email_address?.enabled ||
199-
this.attributes?.phone_number?.enabled ||
200-
(this.attributes.password?.required && this.attributes.username?.required),
199+
this.attributes?.phone_number?.enabled ||
200+
(this.attributes.password?.required && this.attributes.username?.required),
201201
);
202202
}
203203

packages/nextjs/src/app-router/server/keyless-provider.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ export const KeylessProvider = async (props: KeylessProviderProps) => {
4343
.then(mod => mod.keyless().getOrCreateKeys())
4444
.catch(() => null);
4545

46-
const { clerkDevelopmentCache, createConfirmationMessage, createKeylessModeMessage } = await import(
47-
'../../server/keyless-log-cache.js'
48-
);
46+
const { clerkDevelopmentCache, createConfirmationMessage, createKeylessModeMessage } =
47+
await import('../../server/keyless-log-cache.js');
4948

5049
if (!newOrReadKeys) {
5150
// When case keyless should run, but keys are not available, then fallback to throwing for missing keys

packages/shared/src/react/hooks/createBillingPaginatedHook.tsx

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,26 @@ type BillingHookConfig<TResource extends ClerkResource, TParams extends PagesOrI
2626
/**
2727
* @interface
2828
*/
29-
export interface HookParams
30-
extends PaginatedHookConfig<
31-
PagesOrInfiniteOptions & {
32-
/**
33-
* If `true`, a request will be triggered when the hook is mounted.
34-
*
35-
* @default true
36-
*/
37-
enabled?: boolean;
38-
/**
39-
* On `cache` mode, no request will be triggered when the hook is mounted and the data will be fetched from the cache.
40-
*
41-
* @default undefined
42-
*
43-
* @hidden
44-
*
45-
* @experimental
46-
*/
47-
__experimental_mode?: 'cache';
48-
}
49-
> {
29+
export interface HookParams extends PaginatedHookConfig<
30+
PagesOrInfiniteOptions & {
31+
/**
32+
* If `true`, a request will be triggered when the hook is mounted.
33+
*
34+
* @default true
35+
*/
36+
enabled?: boolean;
37+
/**
38+
* On `cache` mode, no request will be triggered when the hook is mounted and the data will be fetched from the cache.
39+
*
40+
* @default undefined
41+
*
42+
* @hidden
43+
*
44+
* @experimental
45+
*/
46+
__experimental_mode?: 'cache';
47+
}
48+
> {
5049
/**
5150
* Specifies whether to fetch for the current user or Organization.
5251
*

packages/shared/src/types/localization.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ type DeepLocalizationWithoutObjects<T> = {
6262
* as a starting point.
6363
*/
6464
// eslint-disable-next-line @typescript-eslint/no-empty-object-type -- Needs to be an interface for typedoc to link correctly
65-
export interface LocalizationResource
66-
extends DeepPartial<DeepLocalizationWithoutObjects<__internal_LocalizationResource>> {}
65+
export interface LocalizationResource extends DeepPartial<
66+
DeepLocalizationWithoutObjects<__internal_LocalizationResource>
67+
> {}
6768

6869
export type __internal_LocalizationResource = {
6970
locale: string;

pnpm-lock.yaml

Lines changed: 39 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)