Tactical Media Broadcast Hub — initial release
Self-hosted multi-platform broadcast newsroom for activist collectives: publishing pipeline with group approval and DST-proof scheduling, TweetDeck-style column wall with hostile-content-safe rendering, live control room with Auto Director, bridged chat governance with polls and quorum, distributed sandboxed transcode workers, encrypted content-addressed archive, monthly analytics. MIT licensed. See README.md and docs/.
This commit is contained in:
commit
aa5e262f3a
880 changed files with 111042 additions and 0 deletions
48
eslint.config.mjs
Normal file
48
eslint.config.mjs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
import tseslint from "typescript-eslint";
|
||||
|
||||
const PROVIDER_IDS =
|
||||
"youtube|facebook|instagram|threads|linkedin|mastodon|bluesky|reddit|tiktok|twitch|peertube|discord|slack|telegram";
|
||||
|
||||
/** Provider branching belongs in connector packages only — never in core/app code. */
|
||||
const noProviderBranching = {
|
||||
files: ["**/*.ts", "**/*.tsx"],
|
||||
ignores: [
|
||||
"packages/connector-*/**",
|
||||
"packages/testing/**",
|
||||
// apps/web/src/lib is the mock-registry boundary: manifest-shaped data that
|
||||
// stands in for ConnectorRegistry until the real registry feeds the UI —
|
||||
// same standing as packages/testing. Pages must import from here, never
|
||||
// declare provider literals inline.
|
||||
"apps/web/src/lib/**",
|
||||
"**/*.test.ts",
|
||||
],
|
||||
rules: {
|
||||
"no-restricted-syntax": [
|
||||
"error",
|
||||
{
|
||||
selector: `Literal[value=/${PROVIDER_IDS}/]`,
|
||||
message:
|
||||
"Provider string literal outside a connector package — resolve via ConnectorRegistry instead of branching on provider names.",
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
export default tseslint.config(
|
||||
{ ignores: ["**/dist/**", "**/.next/**", "**/*.config.mjs"] },
|
||||
...tseslint.configs.recommended.map((config) => ({
|
||||
...config,
|
||||
files: ["**/*.ts", "**/*.tsx"],
|
||||
})),
|
||||
{
|
||||
files: ["**/*.ts", "**/*.tsx"],
|
||||
rules: {
|
||||
"@typescript-eslint/no-explicit-any": "error",
|
||||
"@typescript-eslint/no-unused-vars": [
|
||||
"error",
|
||||
{ argsIgnorePattern: "^_" },
|
||||
],
|
||||
},
|
||||
},
|
||||
noProviderBranching,
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue