Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrastopoulos committed Feb 12, 2024
1 parent 429e685 commit cbd328f
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 8 deletions.
3 changes: 2 additions & 1 deletion apps/expo/src/utils/api.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import type { AppRouter } from "@scottylabs/api";
import { useState } from "react";
import Constants from "expo-constants";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { httpBatchLink, loggerLink } from "@trpc/client";
import { createTRPCReact } from "@trpc/react-query";
import superjson from "superjson";

import type { AppRouter } from "@scottylabs/api";

/**
* A set of typesafe hooks for consuming your API.
*/
Expand Down
3 changes: 2 additions & 1 deletion apps/expo/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import type { Config } from "tailwindcss";
import baseConfig from "@scottylabs/tailwind-config/native";
// @ts-expect-error - no types
import nativewind from "nativewind/preset";

import baseConfig from "@scottylabs/tailwind-config/native";

export default {
content: ["./src/**/*.{ts,tsx}"],
presets: [baseConfig, nativewind],
Expand Down
3 changes: 2 additions & 1 deletion apps/nextjs/src/app/_components/posts.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"use client";

import type { RouterOutputs } from "@scottylabs/api";
import { use } from "react";

import type { RouterOutputs } from "@scottylabs/api";
import { cn } from "@scottylabs/ui";
import { Button } from "@scottylabs/ui/button";
import {
Expand Down
3 changes: 2 additions & 1 deletion apps/nextjs/src/trpc/react.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
"use client";

import type { AppRouter } from "@scottylabs/api";
import { useState } from "react";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { loggerLink, unstable_httpBatchStreamLink } from "@trpc/client";
import { createTRPCReact } from "@trpc/react-query";
import SuperJSON from "superjson";

import type { AppRouter } from "@scottylabs/api";

export const api = createTRPCReact<AppRouter>();

export function TRPCReactProvider(props: { children: React.ReactNode }) {
Expand Down
3 changes: 2 additions & 1 deletion apps/nextjs/src/trpc/server.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { cache } from "react";
import { headers } from "next/headers";
import { createCaller, createTRPCContext } from "@scottylabs/api";
import { auth } from "@clerk/nextjs";

import { createCaller, createTRPCContext } from "@scottylabs/api";

/**
* This wraps the `createTRPCContext` helper and provides the required context for the tRPC API when
* handling a tRPC call from a React Server Component.
Expand Down
3 changes: 2 additions & 1 deletion apps/nextjs/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import type { Config } from "tailwindcss";
import baseConfig from "@scottylabs/tailwind-config/web";
import { fontFamily } from "tailwindcss/defaultTheme";

import baseConfig from "@scottylabs/tailwind-config/web";

export default {
// We need to append the path to the UI package to the content array so that
// those classes are included correctly.
Expand Down
3 changes: 2 additions & 1 deletion packages/api/src/router/post.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { z } from "zod";

import { desc, eq, schema } from "@scottylabs/db";
import { CreatePostSchema } from "@scottylabs/validators";
import { z } from "zod";

import { createTRPCRouter, protectedProcedure, publicProcedure } from "../trpc";

Expand Down
4 changes: 3 additions & 1 deletion packages/db/src/schema/_table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ import { pgTableCreator } from "drizzle-orm/pg-core";
*
* @see https://orm.drizzle.team/docs/goodies#multi-project-schema
*/
export const pgTable = pgTableCreator((name) => `tartanhacks_dashboard_${name}`);
export const pgTable = pgTableCreator(
(name) => `tartanhacks_dashboard_${name}`,
);
1 change: 1 addition & 0 deletions packages/ui/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* for Tailwind Intellisense & Autocompletion in the source files
*/
import type { Config } from "tailwindcss";

import baseConfig from "@scottylabs/tailwind-config/web";

export default {
Expand Down

0 comments on commit cbd328f

Please sign in to comment.