Files
crosscode-platform/eslint.config.mjs
T
joshuaandClaude Opus 5.5 36ceb358b8 feat(website): apps/website skeleton
Backend (Express + Prisma, ES modules, as Accounts): /api/health and
/api/v1/site/status (Coming soon until the first publish), the content
model and its first migration, and the confirmed section variants per
template (WEBSITE-1.0-PLAN §3, decision 16) with the template switch
rules, with tests. Frontend (Next.js 16): Coming soon page, admin
placeholder, robots.txt. env.template.json, PM2 example, CHANGELOG and
WHATS-NEW. Root workspaces and lint updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 08:41:11 +02:00

24 lines
1.2 KiB
JavaScript

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", __dirname: "readonly", process: "readonly", console: "readonly" } },
rules: { "@typescript-eslint/no-require-imports": "off" },
},
{
rules: {
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
"@typescript-eslint/consistent-type-imports": "error",
},
},
// Cross Events keeps its own lint (frontend/eslint.config.mjs, tsc for the backend) for now.
// The Accounts and Website frontends have their own Next lint (apps/*/frontend/eslint.config.mjs); Prisma's client is generated.
globalIgnores(["**/node_modules/**", "**/dist/**", "**/coverage/**", "**/schemas/**", "apps/events/**", "apps/accounts/frontend/**", "apps/website/frontend/**", "**/src/generated/**", "**/.next/**"]),
]);