Fork anchor, strip all push notification code (APNs, FCM, WebPush), rename from anchor to mailship, add new database schema for subscriptions + events tables, and add HTTP API for email notification registration and NIP-9a relay push callbacks. - POST /subscription/email — register for email digests - DELETE /subscription/:key — unsubscribe - POST /notify/:id — NIP-9a relay push callback - GET /confirm?token=... — confirm email - GET /unsubscribe?token=... — unsubscribe Co-authored-by: mplorentz
31 lines
831 B
JavaScript
31 lines
831 B
JavaScript
import globals from "globals";
|
|
import pluginJs from "@eslint/js";
|
|
import tsPlugin from "@typescript-eslint/eslint-plugin";
|
|
import tsParser from "@typescript-eslint/parser";
|
|
|
|
/** @type {import('eslint').Linter.Config[]} */
|
|
export default [
|
|
{
|
|
...pluginJs.configs.recommended,
|
|
files: ["src/**/*.{js,ts}"],
|
|
languageOptions: {
|
|
sourceType: "module",
|
|
globals: globals.node,
|
|
parser: tsParser,
|
|
parserOptions: {
|
|
project: "./tsconfig.json"
|
|
}
|
|
},
|
|
plugins: {
|
|
"@typescript-eslint": tsPlugin
|
|
},
|
|
rules: {
|
|
...tsPlugin.configs.recommended.rules,
|
|
'@typescript-eslint/no-explicit-any': "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{args: "none", destructuredArrayIgnorePattern: "^_d?$", caughtErrors: "none"},
|
|
],
|
|
},
|
|
},
|
|
];
|