Monorepo set up: workspaces, contracts package, placeholders

npm workspaces (packages/*, apps/*) with shared TypeScript, ESLint and
Jest setup and `npm run check`. @crosscode/contracts builds to CommonJS
and ESM (tsup) with the crosscode.<name>/<major> schema-name helpers.
packages/ui and apps/{accounts,website,app} are placeholders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-04 09:36:42 +02:00
co-authored by Claude Opus 5.5
commit 19f79dfb17
24 changed files with 7609 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { defineConfig, globalIgnores } from "eslint/config";
import js from "@eslint/js";
import tseslint from "typescript-eslint";
// One flat config for the whole monorepo. Run with `npm run lint` at the root.
export default defineConfig([
js.configs.recommended,
...tseslint.configs.recommended,
{
files: ["**/*.cjs", "**/jest.config.js"],
languageOptions: { sourceType: "commonjs", globals: { module: "writable", require: "readonly" } },
rules: { "@typescript-eslint/no-require-imports": "off" },
},
{
rules: {
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
"@typescript-eslint/consistent-type-imports": "error",
},
},
globalIgnores(["**/node_modules/**", "**/dist/**", "**/coverage/**", "**/schemas/**"]),
]);