Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions examples/demos/dashboard-integration/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
import { dirname } from "path";
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const compat = new FlatCompat({
baseDirectory: __dirname,
});
import coreWebVitals from "eslint-config-next/core-web-vitals";
import typescript from "eslint-config-next/typescript";

const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript"),
...coreWebVitals,
...typescript,
{
ignores: [
"node_modules/**",
Expand All @@ -26,6 +19,9 @@ const eslintConfig = [
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-empty-object-type": "off",
"react/no-unescaped-entities": "off",
// config-next 16 promotes this to an error; demo components intentionally
// seed state from query params / timers, so keep it advisory.
"react-hooks/set-state-in-effect": "warn",
},
},
];
Expand Down
8 changes: 7 additions & 1 deletion examples/demos/dashboard-integration/next.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import path from "node:path";
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
/* config options here */
// The @hookdeck/outpost-sdk dependency is a symlink to ../../../sdks/outpost-typescript,
// which lives outside this demo's directory. Point Turbopack's root at the repo root so
// it traverses the symlink target during module resolution.
turbopack: {
root: path.resolve(process.cwd(), "../../.."),
},
};

export default nextConfig;
Loading
Loading