chore(format): run prettier over src/ and scripts/
Formatting was configured but never enforced: `bun run format:check` reported 199 unformatted files and ran in no workflow and in no git hook, so .prettierrc (printWidth 100, trailing commas) described an intention rather than the tree. This is the one-time sweep that makes the check gateable. Whitespace and token-reflow only -- no behavioural change: `bun run check` reports 0 errors and all 1053 frontend tests pass before and after. Kept out of every other commit on purpose. A 199-file diff mixed with real changes is unreviewable, and the next commit turns format:check into a hard CI gate so this cannot silently accumulate again.
This commit is contained in:
@@ -63,7 +63,7 @@ class SyncService {
|
||||
async queueMutation(
|
||||
operation: SyncOperation,
|
||||
itemId: string,
|
||||
payload?: Record<string, unknown>
|
||||
payload?: Record<string, unknown>,
|
||||
): Promise<number> {
|
||||
const userId = auth.getUserId();
|
||||
if (!userId) {
|
||||
@@ -74,7 +74,7 @@ class SyncService {
|
||||
userId,
|
||||
operation,
|
||||
itemId,
|
||||
payload ? JSON.stringify(payload) : null
|
||||
payload ? JSON.stringify(payload) : null,
|
||||
);
|
||||
|
||||
log.debug(`Queued ${operation} for item ${itemId}, id: ${id}`);
|
||||
@@ -90,10 +90,7 @@ class SyncService {
|
||||
* Queue playback progress update
|
||||
* Also updates local state immediately
|
||||
*/
|
||||
async queuePlaybackProgress(
|
||||
itemId: string,
|
||||
positionMs: number
|
||||
): Promise<number> {
|
||||
async queuePlaybackProgress(itemId: string, positionMs: number): Promise<number> {
|
||||
// Update local state first
|
||||
await commands.storageUpdatePlaybackProgress(auth.getUserId() ?? "", itemId, positionMs);
|
||||
|
||||
@@ -184,7 +181,11 @@ class SyncService {
|
||||
return this.queueMutation("playlist_remove_items", playlistId, { entryIds });
|
||||
}
|
||||
|
||||
async queuePlaylistReorderItem(playlistId: string, itemId: string, newIndex: number): Promise<number> {
|
||||
async queuePlaylistReorderItem(
|
||||
playlistId: string,
|
||||
itemId: string,
|
||||
newIndex: number,
|
||||
): Promise<number> {
|
||||
return this.queueMutation("playlist_reorder_item", playlistId, { itemId, newIndex });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user