Skip to content

Commit db55e28

Browse files
chore: update to prettier v3 (#567)
1 parent 4c42a5f commit db55e28

File tree

151 files changed

+948
-939
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+948
-939
lines changed

.prettierrc

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

agents/tasks/feed-feature-plan.plan.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ feedEntries: defineTable({
4949
v.literal('major'),
5050
v.literal('minor'),
5151
v.literal('patch'),
52-
v.literal('prerelease')
52+
v.literal('prerelease'),
5353
),
5454
url: v.string(), // GitHub release URL
5555
author: v.optional(v.string()), // GitHub username
@@ -66,7 +66,7 @@ feedEntries: defineTable({
6666
type: v.literal('manual'),
6767
createdBy: v.id('users'), // Admin user who created it
6868
editedBy: v.optional(v.id('users')), // Last editor
69-
})
69+
}),
7070
),
7171

7272
// Categorization
@@ -79,7 +79,7 @@ feedEntries: defineTable({
7979
v.literal('blog'),
8080
v.literal('partner'),
8181
v.literal('update'),
82-
v.literal('other')
82+
v.literal('other'),
8383
),
8484

8585
// Display control
@@ -219,7 +219,7 @@ z.object({
219219
libraries: z.array(librarySchema).optional(),
220220
categories: z
221221
.array(
222-
z.enum(['release', 'announcement', 'blog', 'partner', 'update', 'other'])
222+
z.enum(['release', 'announcement', 'blog', 'partner', 'update', 'other']),
223223
)
224224
.optional(),
225225
partners: z.array(z.string()).optional(),

agents/tasks/tanstack-com-task-list.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
### Tasks
2929

3030
- [ ] Implement “Trusted By” on homepage
31-
3231
- Status: Backlog
3332
- Notes:
3433
- Reuse `TrustedByMarquee` but upgrade to support logos + links + tooltip proof.
@@ -43,7 +42,6 @@
4342
- Owner:
4443

4544
- [ ] Add Real-Time Metrics Counters (per-library + org rollup)
46-
4745
- Status: Partial (org rollup live via `OpenSourceStats`)
4846
- Notes:
4947
- Extend counters to per-library pages using existing Convex endpoints or add repo-level endpoints via `convex-oss-stats` if needed.
@@ -91,7 +89,6 @@
9189
### Tasks
9290

9391
- [ ] Redesign/Create “About” page
94-
9592
- Status: Backlog
9693
- Notes:
9794
- Route: `src/routes/about.tsx`.
@@ -101,7 +98,6 @@
10198
- Links: `src/components/MaintainerCard.tsx`, `src/routes/_libraries/maintainers.tsx`.
10299

103100
- [ ] Speaking Engagements section
104-
105101
- Status: Backlog
106102
- Notes:
107103
- Add to About or standalone `src/routes/speaking.tsx`.
@@ -136,7 +132,6 @@
136132
### Tasks
137133

138134
- [ ] “Enterprise” page
139-
140135
- Status: Partial
141136
- Notes:
142137
- Option 1: Rename and expand `paid-support` into `enterprise` (route alias + updated copy) while keeping legacy route.
@@ -165,7 +160,6 @@
165160
### Tasks
166161

167162
- [ ] Public Roadmap page
168-
169163
- Status: Backlog
170164
- Notes:
171165
- Route: `src/routes/roadmap.tsx`.
@@ -194,7 +188,6 @@
194188
### Tasks
195189

196190
- [ ] Press/Media Kit page
197-
198191
- Status: Backlog
199192
- Notes:
200193
- Route: `src/routes/media-kit.tsx`.
@@ -203,7 +196,6 @@
203196
- Acceptance: Page provides direct downloads and usage rules.
204197

205198
- [ ] In the News page
206-
207199
- Status: Backlog
208200
- Notes:
209201
- Route: `src/routes/news.tsx`.

convex/capabilities.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Id } from './_generated/dataModel'
66
// Extracted to avoid circular dependencies between users.ts and roles.ts
77
export async function getEffectiveCapabilities(
88
ctx: QueryCtx,
9-
userId: Id<'users'>
9+
userId: Id<'users'>,
1010
): Promise<Capability[]> {
1111
// Get user's direct capabilities
1212
const user = await ctx.db.get(userId)
@@ -32,7 +32,7 @@ export async function getEffectiveCapabilities(
3232

3333
// Union of direct capabilities and role capabilities
3434
const effectiveCapabilities = Array.from(
35-
new Set<Capability>([...directCapabilities, ...roleCapabilities])
35+
new Set<Capability>([...directCapabilities, ...roleCapabilities]),
3636
)
3737

3838
// Admin users automatically get feed capability

convex/feed/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const syncAllSources = action({
2525
try {
2626
const githubResult: { success: boolean } = await ctx.runAction(
2727
api.feed.github.syncGitHubReleases,
28-
{} // Uses default of 2 days
28+
{}, // Uses default of 2 days
2929
)
3030
results.github.success = githubResult.success
3131
} catch (error) {

convex/feed/blog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const syncBlogPosts = action({
6565
excerpt: v.optional(v.string()),
6666
content: v.string(),
6767
authors: v.array(v.string()),
68-
})
68+
}),
6969
),
7070
},
7171
handler: async (ctx, args) => {

convex/feed/crons.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ crons.hourly(
1010
minuteUTC: 0,
1111
},
1212
api.feed.github.syncGitHubReleases,
13-
{}
13+
{},
1414
)
1515

1616
// Note: Blog sync requires server-side access to content-collections

convex/feed/crypto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const verifyGitHubSignature = action({
1919
const digest = 'sha256=' + hmac.update(args.payload).digest('hex')
2020
return crypto.timingSafeEqual(
2121
Buffer.from(args.signature),
22-
Buffer.from(digest)
22+
Buffer.from(digest),
2323
)
2424
},
2525
})

convex/feed/github.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ async function getLastSyncTime(ctx: any, repo: string): Promise<number | null> {
155155
async function updateLastSyncTime(
156156
ctx: any,
157157
repo: string,
158-
timestamp: number
158+
timestamp: number,
159159
): Promise<void> {
160160
const configKey = `github:sync:${repo}`
161161
await ctx.runMutation(api.feed.mutations.setFeedConfig, {
@@ -173,7 +173,7 @@ async function updateLastSyncTime(
173173
async function fetchRepoReleases(
174174
repo: string,
175175
token: string,
176-
since?: number
176+
since?: number,
177177
): Promise<any[]> {
178178
const url = `https://api.github.com/repos/${repo}/releases?per_page=100&page=1`
179179

@@ -211,7 +211,7 @@ async function fetchRepoReleases(
211211
// Filter by since timestamp if provided
212212
if (since && since > 0) {
213213
return releases.filter(
214-
(release: any) => new Date(release.published_at).getTime() > since
214+
(release: any) => new Date(release.published_at).getTime() > since,
215215
)
216216
}
217217

@@ -234,7 +234,7 @@ export const syncGitHubReleases = action({
234234
const token = process.env.GITHUB_AUTH_TOKEN
235235
if (!token) {
236236
throw new Error(
237-
'GITHUB_AUTH_TOKEN not configured. Please set it in Convex dashboard.'
237+
'GITHUB_AUTH_TOKEN not configured. Please set it in Convex dashboard.',
238238
)
239239
}
240240

@@ -323,7 +323,7 @@ export const syncGitHubReleases = action({
323323
} catch (error) {
324324
console.error(
325325
`Error processing release ${release.id} from ${repo}:`,
326-
error
326+
error,
327327
)
328328
errorCount++
329329
}

convex/feed/http.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const handleGitHubWebhook = httpAction(async (ctx, request) => {
1010
{
1111
status: 500,
1212
headers: { 'Content-Type': 'application/json' },
13-
}
13+
},
1414
)
1515
}
1616

@@ -55,7 +55,7 @@ export const handleGitHubWebhook = httpAction(async (ctx, request) => {
5555
{
5656
status: 200,
5757
headers: { 'Content-Type': 'application/json' },
58-
}
58+
},
5959
)
6060
}
6161

@@ -109,6 +109,6 @@ export const handleGitHubWebhook = httpAction(async (ctx, request) => {
109109
{
110110
status: 200,
111111
headers: { 'Content-Type': 'application/json' },
112-
}
112+
},
113113
)
114114
})

0 commit comments

Comments
 (0)