diff --git a/.github/renovate.json b/.github/renovate.json index 3fd29fa..a273dc5 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,8 +1,6 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "github>sanity-io/renovate-config" - ], + "extends": ["github>sanity-io/renovate-config"], "packageRules": [ { "matchFileNames": ["next-13/package.json"], @@ -34,5 +32,5 @@ "matchPackageNames": ["react", "react-dom"], "followTag": "rc" } - ] + ] } diff --git a/api/package.json b/api/package.json index 684405a..eb0808c 100644 --- a/api/package.json +++ b/api/package.json @@ -2,13 +2,13 @@ "name": "api", "version": "0.0.0", "private": true, + "dependencies": { + "@sanity/client": "^6.22.5", + "d3-color": "^3.1.0" + }, "devDependencies": { "@edge-runtime/types": "^3.0.3", "@types/d3-color": "^3.1.3", "typescript": "5.6.3" - }, - "dependencies": { - "@sanity/client": "^6.22.5", - "d3-color": "^3.1.0" } -} \ No newline at end of file +} diff --git a/astro/astro.config.mjs b/astro/astro.config.mjs index 8d7977c..6c8b958 100644 --- a/astro/astro.config.mjs +++ b/astro/astro.config.mjs @@ -1,6 +1,6 @@ // @ts-check // @ts-check -import { defineConfig } from 'astro/config'; +import {defineConfig} from 'astro/config' // https://astro.build/config -export default defineConfig({}); +export default defineConfig({}) diff --git a/astro/package.json b/astro/package.json index 123010b..bfe9fa6 100644 --- a/astro/package.json +++ b/astro/package.json @@ -1,12 +1,12 @@ { "name": "astro", - "type": "module", "version": "0.0.1", + "type": "module", "scripts": { - "dev": "astro dev", + "astro": "astro", "build": "astro check && astro build", - "preview": "astro preview", - "astro": "astro" + "dev": "astro dev", + "preview": "astro preview" }, "dependencies": { "@astrojs/check": "^0.9.4", diff --git a/astro/src/layouts/Layout.astro b/astro/src/layouts/Layout.astro index a25b9e6..05587c2 100644 --- a/astro/src/layouts/Layout.astro +++ b/astro/src/layouts/Layout.astro @@ -1,13 +1,13 @@ - - - - - - Astro Basics - - - - + + + + + + Astro Basics + + + + diff --git a/astro/src/pages/index.astro b/astro/src/pages/index.astro index a2bf4ee..88fbb6b 100644 --- a/astro/src/pages/index.astro +++ b/astro/src/pages/index.astro @@ -1,8 +1,8 @@ --- -import { Welcome } from 'astro:components'; -import Layout from '../layouts/Layout.astro'; +import {Welcome} from 'astro:components' +import Layout from '../layouts/Layout.astro' --- - + diff --git a/astro/tsconfig.json b/astro/tsconfig.json index 318475d..cef5a78 100644 --- a/astro/tsconfig.json +++ b/astro/tsconfig.json @@ -1,10 +1,5 @@ { "extends": "astro/tsconfigs/strictest", - "include": [ - ".astro/types.d.ts", - "**/*" - ], - "exclude": [ - "dist" - ] + "include": [".astro/types.d.ts", "**/*"], + "exclude": ["dist"] } diff --git a/next-13/package.json b/next-13/package.json index f989d27..bcfd110 100644 --- a/next-13/package.json +++ b/next-13/package.json @@ -3,10 +3,10 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "next dev", "build": "next build", - "start": "next start", - "lint": "next lint" + "dev": "next dev", + "lint": "next lint", + "start": "next start" }, "dependencies": { "@sanity/client": "^6.22.5", diff --git a/next-13/src/pages/_app.tsx b/next-13/src/pages/_app.tsx index 021681f..c02857f 100644 --- a/next-13/src/pages/_app.tsx +++ b/next-13/src/pages/_app.tsx @@ -1,6 +1,6 @@ import '@/styles/globals.css' -import type { AppProps } from 'next/app' +import type {AppProps} from 'next/app' -export default function App({ Component, pageProps }: AppProps) { +export default function App({Component, pageProps}: AppProps) { return } diff --git a/next-13/src/pages/_document.tsx b/next-13/src/pages/_document.tsx index 54e8bf3..f1e8378 100644 --- a/next-13/src/pages/_document.tsx +++ b/next-13/src/pages/_document.tsx @@ -1,4 +1,4 @@ -import { Html, Head, Main, NextScript } from 'next/document' +import {Head, Html, Main, NextScript} from 'next/document' export default function Document() { return ( diff --git a/next-13/src/pages/api/hello.ts b/next-13/src/pages/api/hello.ts index f8bcc7e..7c08d6c 100644 --- a/next-13/src/pages/api/hello.ts +++ b/next-13/src/pages/api/hello.ts @@ -1,13 +1,10 @@ // Next.js API route support: https://nextjs.org/docs/api-routes/introduction -import type { NextApiRequest, NextApiResponse } from 'next' +import type {NextApiRequest, NextApiResponse} from 'next' type Data = { name: string } -export default function handler( - req: NextApiRequest, - res: NextApiResponse -) { - res.status(200).json({ name: 'John Doe' }) +export default function handler(req: NextApiRequest, res: NextApiResponse) { + res.status(200).json({name: 'John Doe'}) } diff --git a/next-13/src/pages/index.tsx b/next-13/src/pages/index.tsx index be88f73..644f7fb 100644 --- a/next-13/src/pages/index.tsx +++ b/next-13/src/pages/index.tsx @@ -1,19 +1,19 @@ +import {Inter} from 'next/font/google' import Image from 'next/image' -import { Inter } from 'next/font/google' -const inter = Inter({ subsets: ['latin'] }) +const inter = Inter({subsets: ['latin']}) export default function Home() { return (
-
-

+

+

Get started by editing  src/pages/index.tsx

-
+ -
+
-
+
-
+ - ); + ) } diff --git a/next-14/tailwind.config.ts b/next-14/tailwind.config.ts index 021c393..226e32a 100644 --- a/next-14/tailwind.config.ts +++ b/next-14/tailwind.config.ts @@ -1,19 +1,19 @@ -import type { Config } from "tailwindcss"; +import type {Config} from 'tailwindcss' const config: Config = { content: [ - "./src/pages/**/*.{js,ts,jsx,tsx,mdx}", - "./src/components/**/*.{js,ts,jsx,tsx,mdx}", - "./src/app/**/*.{js,ts,jsx,tsx,mdx}", + './src/pages/**/*.{js,ts,jsx,tsx,mdx}', + './src/components/**/*.{js,ts,jsx,tsx,mdx}', + './src/app/**/*.{js,ts,jsx,tsx,mdx}', ], theme: { extend: { colors: { - background: "var(--background)", - foreground: "var(--foreground)", + background: 'var(--background)', + foreground: 'var(--foreground)', }, }, }, plugins: [], -}; -export default config; +} +export default config diff --git a/next-15/package.json b/next-15/package.json index 65cf06c..8b3ab17 100644 --- a/next-15/package.json +++ b/next-15/package.json @@ -3,10 +3,10 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "next dev --turbopack", "build": "next build", - "start": "next start", - "lint": "next lint" + "dev": "next dev --turbopack", + "lint": "next lint", + "start": "next start" }, "dependencies": { "@sanity/client": "^6.22.5", diff --git a/next-15/postcss.config.mjs b/next-15/postcss.config.mjs index 1a69fd2..0dc456a 100644 --- a/next-15/postcss.config.mjs +++ b/next-15/postcss.config.mjs @@ -3,6 +3,6 @@ const config = { plugins: { tailwindcss: {}, }, -}; +} -export default config; +export default config diff --git a/next-15/src/app/layout.tsx b/next-15/src/app/layout.tsx index a36cde0..f4445ff 100644 --- a/next-15/src/app/layout.tsx +++ b/next-15/src/app/layout.tsx @@ -1,35 +1,31 @@ -import type { Metadata } from "next"; -import localFont from "next/font/local"; -import "./globals.css"; +import type {Metadata} from 'next' +import localFont from 'next/font/local' +import './globals.css' const geistSans = localFont({ - src: "./fonts/GeistVF.woff", - variable: "--font-geist-sans", - weight: "100 900", -}); + src: './fonts/GeistVF.woff', + variable: '--font-geist-sans', + weight: '100 900', +}) const geistMono = localFont({ - src: "./fonts/GeistMonoVF.woff", - variable: "--font-geist-mono", - weight: "100 900", -}); + src: './fonts/GeistMonoVF.woff', + variable: '--font-geist-mono', + weight: '100 900', +}) export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", -}; + title: 'Create Next App', + description: 'Generated by create next app', +} export default function RootLayout({ children, }: Readonly<{ - children: React.ReactNode; + children: React.ReactNode }>) { return ( - - {children} - + {children} - ); + ) } diff --git a/next-15/src/app/page.tsx b/next-15/src/app/page.tsx index 3eee014..b34149c 100644 --- a/next-15/src/app/page.tsx +++ b/next-15/src/app/page.tsx @@ -1,9 +1,9 @@ -import Image from "next/image"; +import Image from 'next/image' export default function Home() { return ( -
-
+ - ); + ) } diff --git a/next-15/tailwind.config.ts b/next-15/tailwind.config.ts index 109807b..1c54c9b 100644 --- a/next-15/tailwind.config.ts +++ b/next-15/tailwind.config.ts @@ -1,18 +1,18 @@ -import type { Config } from "tailwindcss"; +import type {Config} from 'tailwindcss' export default { content: [ - "./src/pages/**/*.{js,ts,jsx,tsx,mdx}", - "./src/components/**/*.{js,ts,jsx,tsx,mdx}", - "./src/app/**/*.{js,ts,jsx,tsx,mdx}", + './src/pages/**/*.{js,ts,jsx,tsx,mdx}', + './src/components/**/*.{js,ts,jsx,tsx,mdx}', + './src/app/**/*.{js,ts,jsx,tsx,mdx}', ], theme: { extend: { colors: { - background: "var(--background)", - foreground: "var(--foreground)", + background: 'var(--background)', + foreground: 'var(--foreground)', }, }, }, plugins: [], -} satisfies Config; +} satisfies Config diff --git a/next-canary/package.json b/next-canary/package.json index 3099ec3..97312a4 100644 --- a/next-canary/package.json +++ b/next-canary/package.json @@ -3,10 +3,10 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "next dev --turbopack", "build": "next build", - "start": "next start", - "lint": "next lint" + "dev": "next dev --turbopack", + "lint": "next lint", + "start": "next start" }, "dependencies": { "@sanity/client": "^6.22.5", diff --git a/next-canary/postcss.config.mjs b/next-canary/postcss.config.mjs index 1a69fd2..0dc456a 100644 --- a/next-canary/postcss.config.mjs +++ b/next-canary/postcss.config.mjs @@ -3,6 +3,6 @@ const config = { plugins: { tailwindcss: {}, }, -}; +} -export default config; +export default config diff --git a/next-canary/src/app/page.tsx b/next-canary/src/app/page.tsx index 3eee014..b34149c 100644 --- a/next-canary/src/app/page.tsx +++ b/next-canary/src/app/page.tsx @@ -1,9 +1,9 @@ -import Image from "next/image"; +import Image from 'next/image' export default function Home() { return ( -
-
+
+
-
    +
    1. - Get started by editing{" "} - + Get started by editing{' '} + src/app/page.tsx . @@ -23,9 +23,9 @@ export default function Home() {
    2. Save and see your changes instantly.
    -
-
- ); + ) } diff --git a/nuxt/nuxt.config.ts b/nuxt/nuxt.config.ts index 6425fa7..088a248 100644 --- a/nuxt/nuxt.config.ts +++ b/nuxt/nuxt.config.ts @@ -1,5 +1,5 @@ // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ compatibilityDate: '2024-04-03', - devtools: { enabled: true } + devtools: {enabled: true}, }) diff --git a/nuxt/package.json b/nuxt/package.json index bd3ab86..fc2a45b 100644 --- a/nuxt/package.json +++ b/nuxt/package.json @@ -6,8 +6,8 @@ "build": "nuxt build --preset=vercel_edge", "dev": "nuxt dev", "generate": "nuxt generate", - "preview": "nuxt preview", - "postinstall": "nuxt prepare" + "postinstall": "nuxt prepare", + "preview": "nuxt preview" }, "dependencies": { "@sanity/client": "^6.22.5", diff --git a/package.json b/package.json index db3f21b..e9469a2 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,10 @@ "name": "lcapi-examples", "private": true, "scripts": { - "typegen": "pnpm -r run schema:extract && pnpm -r run typegen:generate", "format": "prettier --cache --write .", "lint": "pnpm -r lint", - "type-check": "pnpm -r type-check" + "type-check": "pnpm -r type-check", + "typegen": "pnpm -r run schema:extract && pnpm -r run typegen:generate" }, "dependencies": { "@ianvs/prettier-plugin-sort-imports": "^4.4.0", diff --git a/studio/package.json b/studio/package.json index 0f5583b..ddb2a49 100644 --- a/studio/package.json +++ b/studio/package.json @@ -1,14 +1,14 @@ { "name": "studio", - "private": true, "version": "1.0.0", + "private": true, "scripts": { - "schema:extract": "sanity schema extract", - "dev": "sanity dev", - "start": "sanity start", "build": "sanity build", "deploy": "sanity deploy", - "deploy-graphql": "sanity graphql deploy" + "deploy-graphql": "sanity graphql deploy", + "dev": "sanity dev", + "schema:extract": "sanity schema extract", + "start": "sanity start" }, "dependencies": { "@sanity/icons": "^3.4.0", diff --git a/studio/sanity.config.ts b/studio/sanity.config.ts index d3d5414..67c3556 100644 --- a/studio/sanity.config.ts +++ b/studio/sanity.config.ts @@ -1,14 +1,10 @@ -import {defineConfig} from 'sanity' -import {structureTool} from 'sanity/structure' import {visionTool} from '@sanity/vision' -import {themeType, demoType} from './schemaTypes' - /** * This plugin contains all the logic for setting up the singletons */ - -import {type DocumentDefinition} from 'sanity' -import {type StructureResolver} from 'sanity/structure' +import {defineConfig, type DocumentDefinition} from 'sanity' +import {structureTool, type StructureResolver} from 'sanity/structure' +import {demoType, themeType} from './schemaTypes' // The StructureResolver is how we're changing the DeskTool structure to linking to document (named Singleton) // like how "Home" is handled. diff --git a/tanstack-start/app/client.tsx b/tanstack-start/app/client.tsx index a0e2afe..440d3ea 100644 --- a/tanstack-start/app/client.tsx +++ b/tanstack-start/app/client.tsx @@ -1,6 +1,6 @@ /// -import {hydrateRoot} from 'react-dom/client' import {StartClient} from '@tanstack/start' +import {hydrateRoot} from 'react-dom/client' import {createRouter} from './router' const router = createRouter() diff --git a/tanstack-start/app/routeTree.gen.ts b/tanstack-start/app/routeTree.gen.ts index 5e68293..3b0593f 100644 --- a/tanstack-start/app/routeTree.gen.ts +++ b/tanstack-start/app/routeTree.gen.ts @@ -10,8 +10,8 @@ // Import Routes -import { Route as rootRoute } from './routes/__root' -import { Route as IndexImport } from './routes/index' +import {Route as rootRoute} from './routes/__root' +import {Route as IndexImport} from './routes/index' // Create/Update Routes @@ -46,7 +46,7 @@ export interface FileRoutesByTo { } export interface FileRoutesById { - __root__: typeof rootRoute + '__root__': typeof rootRoute '/': typeof IndexRoute } diff --git a/tanstack-start/app/ssr.tsx b/tanstack-start/app/ssr.tsx index 04af3d7..47bdfb8 100644 --- a/tanstack-start/app/ssr.tsx +++ b/tanstack-start/app/ssr.tsx @@ -1,7 +1,6 @@ /// -import {createStartHandler, defaultStreamHandler} from '@tanstack/start/server' import {getRouterManifest} from '@tanstack/start/router-manifest' - +import {createStartHandler, defaultStreamHandler} from '@tanstack/start/server' import {createRouter} from './router' export default createStartHandler({ diff --git a/tanstack-start/package.json b/tanstack-start/package.json index 718794f..0b8d451 100644 --- a/tanstack-start/package.json +++ b/tanstack-start/package.json @@ -1,13 +1,13 @@ { "name": "tanstack-start", - "private": true, "version": "1.0.0", + "private": true, "type": "module", "scripts": { - "typegen:generate": "sanity typegen generate", - "dev": "vinxi dev", "build": "vinxi build", - "start": "vinxi start" + "dev": "vinxi dev", + "start": "vinxi start", + "typegen:generate": "sanity typegen generate" }, "dependencies": { "@sanity/client": "^6.22.5", diff --git a/tanstack-start/tsconfig.json b/tanstack-start/tsconfig.json index f157d72..edfdf0e 100644 --- a/tanstack-start/tsconfig.json +++ b/tanstack-start/tsconfig.json @@ -5,6 +5,6 @@ "module": "ESNext", "target": "ES2022", "skipLibCheck": true, - "strictNullChecks": true, - }, -} \ No newline at end of file + "strictNullChecks": true + } +}