From 83902c51b874818d336b16d834807d54c196d28d Mon Sep 17 00:00:00 2001 From: Robert Plante Date: Tue, 30 Dec 2025 16:05:42 -0500 Subject: [PATCH] Adjusting prettier config and running Format runs are filled with warnings about ``` [warn] Ignored unknown option { tailwindStylesheet: "./app/styles.css" } ``` This causes every PR to fail the format check by obscuring which files actually have format issues. This commit removes that field from the imported config and then applies the result to all affected files. --- apps/stardew.app/package.json | 166 +++++++++--------- apps/stardew.app/prettier.config.mjs | 3 + apps/stardew.app/sentry.edge.config.ts | 14 +- apps/stardew.app/sentry.server.config.ts | 14 +- .../stardew.app/src/data/island_upgrades.json | 134 +++++++------- apps/stardew.app/src/instrumentation.ts | 14 +- components.json | 2 +- package.json | 54 +++--- 8 files changed, 202 insertions(+), 199 deletions(-) diff --git a/apps/stardew.app/package.json b/apps/stardew.app/package.json index 8195768c..5e255f38 100644 --- a/apps/stardew.app/package.json +++ b/apps/stardew.app/package.json @@ -1,85 +1,85 @@ { - "name": "stardew.app", - "version": "2.3.0", - "private": true, - "scripts": { - "build": "next build", - "build:turbo": "next build --turbopack", - "clean": "rimraf .next .turbo", - "dev": "next dev", - "dev:turbo": "next dev --turbopack", - "format": "bun run prettier . --check", - "lint": "next lint", - "start": "next start", - "typecheck": "tsgo --noEmit" - }, - "dependencies": { - "@heroicons/react": "^2.0.18", - "@hookform/resolvers": "^3.9.1", - "@marsidev/react-turnstile": "^0.5.3", - "@next/bundle-analyzer": "^14.0.4", - "@planetscale/database": "^1.10.0", - "@radix-ui/react-accordion": "^1.1.2", - "@radix-ui/react-avatar": "^1.0.3", - "@radix-ui/react-checkbox": "^1.0.4", - "@radix-ui/react-context-menu": "^2.1.4", - "@radix-ui/react-dialog": "^1.0.5", - "@radix-ui/react-dropdown-menu": "^2.0.5", - "@radix-ui/react-icons": "^1.3.0", - "@radix-ui/react-label": "^2.0.2", - "@radix-ui/react-popover": "^1.0.6", - "@radix-ui/react-progress": "^1.0.3", - "@radix-ui/react-scroll-area": "^1.0.4", - "@radix-ui/react-select": "^1.2.2", - "@radix-ui/react-separator": "^1.0.3", - "@radix-ui/react-slot": "^1.0.2", - "@radix-ui/react-switch": "^1.0.3", - "@radix-ui/react-tabs": "^1.0.4", - "@radix-ui/react-toast": "^1.1.4", - "@radix-ui/react-toggle": "^1.1.9", - "@radix-ui/react-toggle-group": "^1.1.10", - "@radix-ui/react-tooltip": "^1.0.6", - "@react-hook/media-query": "^1.1.1", - "@sentry/nextjs": "^10", - "@tabler/icons-react": "^2.30.0", - "@types/node": "20.4.0", - "@types/react": "18.2.14", - "@types/react-dom": "18.2.6", - "@types/xxhashjs": "^0.2.4", - "autoprefixer": "10.4.14", - "axios": "^1.7.2", - "class-variance-authority": "^0.6.1", - "clsx": "^1.2.1", - "cmdk": "^0.2.0", - "cookies-next": "^2.1.2", - "drizzle-orm": "^0.31.2", - "eslint": "8.44.0", - "eslint-config-next": "13.4.12", - "fast-xml-parser": "^4.2.6", - "lucide-react": "^0.522.0", - "mysql2": "^3.10.1", - "next": "15.5.7", - "next-themes": "^0.2.1", - "postcss": "8.4.24", - "react": "18.2.0", - "react-dom": "18.2.0", - "react-dropzone": "^14.2.3", - "react-hook-form": "^7.45.4", - "semver": "^7.5.4", - "sonner": "^1.3.1", - "swr": "^2.2.1", - "tailwind-merge": "^1.13.2", - "tailwindcss": "3.3.2", - "tailwindcss-animate": "^1.0.6", - "typescript": "5.1.6", - "vaul": "^0.8.0", - "xxhashjs": "^0.2.2", - "zod": "^3.23.8" - }, - "devDependencies": { - "@0x57/prettier-config": "^1.0.0", - "drizzle-kit": "^0.22.7", - "prettier": "^3.2.5", - "prettier-plugin-tailwindcss": "^0.5.11" - } + "name": "stardew.app", + "version": "2.3.0", + "private": true, + "scripts": { + "build": "next build", + "build:turbo": "next build --turbopack", + "clean": "rimraf .next .turbo", + "dev": "next dev", + "dev:turbo": "next dev --turbopack", + "format": "bun run prettier . --check", + "lint": "next lint", + "start": "next start", + "typecheck": "tsgo --noEmit" + }, + "dependencies": { + "@heroicons/react": "^2.0.18", + "@hookform/resolvers": "^3.9.1", + "@marsidev/react-turnstile": "^0.5.3", + "@next/bundle-analyzer": "^14.0.4", + "@planetscale/database": "^1.10.0", + "@radix-ui/react-accordion": "^1.1.2", + "@radix-ui/react-avatar": "^1.0.3", + "@radix-ui/react-checkbox": "^1.0.4", + "@radix-ui/react-context-menu": "^2.1.4", + "@radix-ui/react-dialog": "^1.0.5", + "@radix-ui/react-dropdown-menu": "^2.0.5", + "@radix-ui/react-icons": "^1.3.0", + "@radix-ui/react-label": "^2.0.2", + "@radix-ui/react-popover": "^1.0.6", + "@radix-ui/react-progress": "^1.0.3", + "@radix-ui/react-scroll-area": "^1.0.4", + "@radix-ui/react-select": "^1.2.2", + "@radix-ui/react-separator": "^1.0.3", + "@radix-ui/react-slot": "^1.0.2", + "@radix-ui/react-switch": "^1.0.3", + "@radix-ui/react-tabs": "^1.0.4", + "@radix-ui/react-toast": "^1.1.4", + "@radix-ui/react-toggle": "^1.1.9", + "@radix-ui/react-toggle-group": "^1.1.10", + "@radix-ui/react-tooltip": "^1.0.6", + "@react-hook/media-query": "^1.1.1", + "@sentry/nextjs": "^10", + "@tabler/icons-react": "^2.30.0", + "@types/node": "20.4.0", + "@types/react": "18.2.14", + "@types/react-dom": "18.2.6", + "@types/xxhashjs": "^0.2.4", + "autoprefixer": "10.4.14", + "axios": "^1.7.2", + "class-variance-authority": "^0.6.1", + "clsx": "^1.2.1", + "cmdk": "^0.2.0", + "cookies-next": "^2.1.2", + "drizzle-orm": "^0.31.2", + "eslint": "8.44.0", + "eslint-config-next": "13.4.12", + "fast-xml-parser": "^4.2.6", + "lucide-react": "^0.522.0", + "mysql2": "^3.10.1", + "next": "15.5.7", + "next-themes": "^0.2.1", + "postcss": "8.4.24", + "react": "18.2.0", + "react-dom": "18.2.0", + "react-dropzone": "^14.2.3", + "react-hook-form": "^7.45.4", + "semver": "^7.5.4", + "sonner": "^1.3.1", + "swr": "^2.2.1", + "tailwind-merge": "^1.13.2", + "tailwindcss": "3.3.2", + "tailwindcss-animate": "^1.0.6", + "typescript": "5.1.6", + "vaul": "^0.8.0", + "xxhashjs": "^0.2.2", + "zod": "^3.23.8" + }, + "devDependencies": { + "@0x57/prettier-config": "^1.0.0", + "drizzle-kit": "^0.22.7", + "prettier": "^3.2.5", + "prettier-plugin-tailwindcss": "^0.5.11" + } } diff --git a/apps/stardew.app/prettier.config.mjs b/apps/stardew.app/prettier.config.mjs index 33c2e50b..5ebc8799 100644 --- a/apps/stardew.app/prettier.config.mjs +++ b/apps/stardew.app/prettier.config.mjs @@ -1,2 +1,5 @@ import config from "@0x57/prettier-config"; + +delete config.tailwindStylesheet; + export default config; diff --git a/apps/stardew.app/sentry.edge.config.ts b/apps/stardew.app/sentry.edge.config.ts index c49cdbea..4f8e644e 100644 --- a/apps/stardew.app/sentry.edge.config.ts +++ b/apps/stardew.app/sentry.edge.config.ts @@ -6,14 +6,14 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ - dsn: "https://2f557a537a56e11d3bdf60941649b239@o4506080157958144.ingest.us.sentry.io/4506080163790848", + dsn: "https://2f557a537a56e11d3bdf60941649b239@o4506080157958144.ingest.us.sentry.io/4506080163790848", - // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control. - tracesSampleRate: 1, + // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control. + tracesSampleRate: 1, - // Enable logs to be sent to Sentry - enableLogs: true, + // Enable logs to be sent to Sentry + enableLogs: true, - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, + // Setting this option to true will print useful information to the console while you're setting up Sentry. + debug: false, }); diff --git a/apps/stardew.app/sentry.server.config.ts b/apps/stardew.app/sentry.server.config.ts index b2994d73..b2763372 100644 --- a/apps/stardew.app/sentry.server.config.ts +++ b/apps/stardew.app/sentry.server.config.ts @@ -5,14 +5,14 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ - dsn: "https://2f557a537a56e11d3bdf60941649b239@o4506080157958144.ingest.us.sentry.io/4506080163790848", + dsn: "https://2f557a537a56e11d3bdf60941649b239@o4506080157958144.ingest.us.sentry.io/4506080163790848", - // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control. - tracesSampleRate: 1, + // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control. + tracesSampleRate: 1, - // Enable logs to be sent to Sentry - enableLogs: true, + // Enable logs to be sent to Sentry + enableLogs: true, - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, + // Setting this option to true will print useful information to the console while you're setting up Sentry. + debug: false, }); diff --git a/apps/stardew.app/src/data/island_upgrades.json b/apps/stardew.app/src/data/island_upgrades.json index ddd1c1b5..700d0a05 100644 --- a/apps/stardew.app/src/data/island_upgrades.json +++ b/apps/stardew.app/src/data/island_upgrades.json @@ -1,68 +1,68 @@ { - "Island_FirstParrot": { - "cost": "1", - "name": "Ginger Island North", - "description": "Unlock access to the north side of the island", - "location": "Leo's house" - }, - "Island_Turtle": { - "cost": "10", - "name": "Ginger Island West", - "description": "Unlock access to the west side of the island", - "location": "Ginger Island South" - }, - "Island_UpgradeHouse": { - "cost": "20", - "name": "Ginger Island Farmhouse", - "description": "Unlock the Farmhouse on the west side of the island, which can be used to sleep in to pass the day without leaving the island", - "location": "Ginger Island West" - }, - "Island_UpgradeHouse_Mailbox": { - "cost": "5", - "name": "Farmhouse Mailbox", - "description": "Allow players to access their mail without leaving the island", - "location": "Ginger Island Farmhouse" - }, - "Island_W_Obelisk": { - "cost": "20", - "name": "Farm Obelisk", - "description": "Allow players to teleport back to the farm, similar to a warp totem", - "location": "Ginger Island Farmhouse" - }, - "Island_UpgradeBridge": { - "cost": "10", - "name": "Island Dig Site", - "description": "Repair the bridge to access the island dig site", - "location": "Ginger Island North" - }, - "Island_UpgradeTrader": { - "cost": "10", - "name": "Island Trader", - "description": "Unlock the Island Trader shop", - "location": "Ginger Island North" - }, - "Island_VolcanoBridge": { - "cost": "5", - "name": "Volcano Bridge", - "description": "Unlock a permanent bridge into the volcano so that players no longer have to have their watering can to get in", - "location": "Volcano Dungeon entrance" - }, - "Island_VolcanoShortcutOut": { - "cost": "5", - "name": "Volcano Exit Shortcut", - "description": "Unlock an escape shortcut from level 5 of the Volcano Dungeon, allowing quick access to Island North", - "location": "Volcano Dungeon level 5" - }, - "Island_Resort": { - "cost": "20", - "name": "Island Resort", - "description": "Unlock a beach resort. NPCs from the town will occasionally come to visit the resort. This also unlocks Island Southeast and the Pirate Cove", - "location": "Ginger Island South" - }, - "Island_UpgradeParrotPlatform": { - "cost": "10", - "name": "Parrot Express", - "description": "Unlock a fast travel system to quickly get around the island", - "location": "Ginger Island" - } -} \ No newline at end of file + "Island_FirstParrot": { + "cost": "1", + "name": "Ginger Island North", + "description": "Unlock access to the north side of the island", + "location": "Leo's house" + }, + "Island_Turtle": { + "cost": "10", + "name": "Ginger Island West", + "description": "Unlock access to the west side of the island", + "location": "Ginger Island South" + }, + "Island_UpgradeHouse": { + "cost": "20", + "name": "Ginger Island Farmhouse", + "description": "Unlock the Farmhouse on the west side of the island, which can be used to sleep in to pass the day without leaving the island", + "location": "Ginger Island West" + }, + "Island_UpgradeHouse_Mailbox": { + "cost": "5", + "name": "Farmhouse Mailbox", + "description": "Allow players to access their mail without leaving the island", + "location": "Ginger Island Farmhouse" + }, + "Island_W_Obelisk": { + "cost": "20", + "name": "Farm Obelisk", + "description": "Allow players to teleport back to the farm, similar to a warp totem", + "location": "Ginger Island Farmhouse" + }, + "Island_UpgradeBridge": { + "cost": "10", + "name": "Island Dig Site", + "description": "Repair the bridge to access the island dig site", + "location": "Ginger Island North" + }, + "Island_UpgradeTrader": { + "cost": "10", + "name": "Island Trader", + "description": "Unlock the Island Trader shop", + "location": "Ginger Island North" + }, + "Island_VolcanoBridge": { + "cost": "5", + "name": "Volcano Bridge", + "description": "Unlock a permanent bridge into the volcano so that players no longer have to have their watering can to get in", + "location": "Volcano Dungeon entrance" + }, + "Island_VolcanoShortcutOut": { + "cost": "5", + "name": "Volcano Exit Shortcut", + "description": "Unlock an escape shortcut from level 5 of the Volcano Dungeon, allowing quick access to Island North", + "location": "Volcano Dungeon level 5" + }, + "Island_Resort": { + "cost": "20", + "name": "Island Resort", + "description": "Unlock a beach resort. NPCs from the town will occasionally come to visit the resort. This also unlocks Island Southeast and the Pirate Cove", + "location": "Ginger Island South" + }, + "Island_UpgradeParrotPlatform": { + "cost": "10", + "name": "Parrot Express", + "description": "Unlock a fast travel system to quickly get around the island", + "location": "Ginger Island" + } +} diff --git a/apps/stardew.app/src/instrumentation.ts b/apps/stardew.app/src/instrumentation.ts index 8aff09f0..5a4e9039 100644 --- a/apps/stardew.app/src/instrumentation.ts +++ b/apps/stardew.app/src/instrumentation.ts @@ -1,13 +1,13 @@ -import * as Sentry from '@sentry/nextjs'; +import * as Sentry from "@sentry/nextjs"; export async function register() { - if (process.env.NEXT_RUNTIME === 'nodejs') { - await import('../sentry.server.config'); - } + if (process.env.NEXT_RUNTIME === "nodejs") { + await import("../sentry.server.config"); + } - if (process.env.NEXT_RUNTIME === 'edge') { - await import('../sentry.edge.config'); - } + if (process.env.NEXT_RUNTIME === "edge") { + await import("../sentry.edge.config"); + } } export const onRequestError = Sentry.captureRequestError; diff --git a/components.json b/components.json index 124d4e83..b302ea2e 100644 --- a/components.json +++ b/components.json @@ -13,4 +13,4 @@ "components": "@/components", "utils": "@/lib/utils" } -} \ No newline at end of file +} diff --git a/package.json b/package.json index 29f71988..7982fdc0 100644 --- a/package.json +++ b/package.json @@ -1,29 +1,29 @@ { - "name": "communitycenter", - "private": true, - "scripts": { - "build": "turbo build", - "dev": "turbo dev --filter=stardew.app --ui=stream", - "lint": "turbo lint", - "typecheck": "turbo typecheck", - "format": "turbo format", - "test": "turbo test", - "clean": "turbo clean && rimraf .turbo" - }, - "packageManager": "bun@1.2.0", - "workspaces": [ - "apps/*", - "packages/*" - ], - "devDependencies": { - "@typescript/native-preview": "7.0.0-dev.20250707.2", - "drizzle-kit": "^0.31.4", - "prettier": "3.4.2", - "rimraf": "6.0.1", - "turbo": "2.4.0", - "typescript": "5.8.2" - }, - "dependencies": { - "drizzle-orm": "^0.44.5" - } + "name": "communitycenter", + "private": true, + "scripts": { + "build": "turbo build", + "dev": "turbo dev --filter=stardew.app --ui=stream", + "lint": "turbo lint", + "typecheck": "turbo typecheck", + "format": "turbo format", + "test": "turbo test", + "clean": "turbo clean && rimraf .turbo" + }, + "packageManager": "bun@1.2.0", + "workspaces": [ + "apps/*", + "packages/*" + ], + "devDependencies": { + "@typescript/native-preview": "7.0.0-dev.20250707.2", + "drizzle-kit": "^0.31.4", + "prettier": "3.4.2", + "rimraf": "6.0.1", + "turbo": "2.4.0", + "typescript": "5.8.2" + }, + "dependencies": { + "drizzle-orm": "^0.44.5" + } }