Strip template artifacts and fix lint errors

Remove npm lockfile, unused create-next-app SVGs, project-specific
next.config workarounds, and the unused @remixicon/react and date-fns deps.

Replace three set-state-in-effect patterns with useSyncExternalStore in
use-mobile, DialogPortal, and Carousel; the carousel change also fixes a
leaked reInit listener. yarn lint and yarn build are clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K8PmydbW6A1S2Tw3SFc3Cg
This commit is contained in:
Rami Bitar
2026-07-23 19:24:23 -04:00
parent 02327188e2
commit d5e463a665
13 changed files with 144 additions and 6937 deletions

View File

@@ -1,34 +1,6 @@
module.exports = {
reactStrictMode: true,
typescript: {
ignoreBuildErrors: true,
},
images: {
unoptimized: true,
remotePatterns: [
{
protocol: "https",
hostname: "images.unsplash.com",
},
{
protocol: "https",
hostname: "cdn.shopify.com",
},
{
protocol: "https",
hostname: "**.frontend.co",
},
],
},
experimental: {
reactDebugChannel: false,
},
webpack: (config, { isServer }) => {
config.cache = { type: "memory" };
if (isServer) {
config.optimization = config.optimization || {};
config.optimization.splitChunks = false;
}
return config;
},
};