apps/app (not released; app@1.0.0 is built in slices, APP-1.0-PLAN §15): - backend (Express, Prisma, pg-boss, as the Website): the Hub client (CCP-, product app, the active-member band in the heartbeat), links and church.changed, sign-in through Accounts (everyone a Member; 8 days renewed up to 90; every role only with 2FA; the first Owner from HUB_ADMIN_EMAIL), Accounts' user.updated/export/deleted, active members once a day, modules on and off, GET /api/v1/app. Migration init. - frontend (Next.js 16): header, tab bar, footer, manifest and icons from the church profile, service worker, Add to home screen, Me, the admin's first dashboard. - env.template.json, PM2 template, README, CHANGELOG, WHATS-NEW; 27 tests. Docs: the Hub runs 2.26.1 with two years of Cross Code's devotionals; an App gets 2 weeks, today included. HANDOVER lists the App's slices. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
1.2 KiB
JavaScript
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, Website and App 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/**", "apps/app/frontend/**", "**/src/generated/**", "**/.next/**"]),
|
|
]);
|