configuration/constants/leak.constants.ts

configuration/constants/leak.constants.ts is a file in Bane's Lab Content. 89 lines of code and 35 definitions.

import type { PrivateTerm } from "#types/leak.types";

export const RULE_TAG = ".eslint.rule.ts";

export const SURFACE_RULE_TAG = ".rule.ts";

export const PATH_SEPARATOR = "/";

export const WORD_SEPARATOR = " ";

export const PACKAGE_FILE = "package.json";

export const JSON_EXTENSION = ".json";

export const JSON_FOLDER = "json";

export const PAYLOAD_TABS_KEY = "tabs";

export const PAYLOAD_SECTIONS_KEY = "sections";

export const PAYLOAD_CONTENT_KEY = "content";

export const PAYLOAD_ID_KEY = "id";

export const PAYLOAD_LABEL_KEY = "label";

export const PAYLOAD_TITLE_KEY = "title";

export const PAYLOAD_KIND_KEY = "kind";

export const CODE_KIND = "code";

export const CODE_FIELD = "code";

export const MIN_TOKEN_LENGTH = 3;

export const TOKEN_STOPS: ReadonlySet<string> = new Set([
    " ",
    "\n",
    "\t",
    ",",
    ";",
    ":",
    "!",
    "?",
    "(",
    ")",
    "[",
    "]",
    "{",
    "}",
    '"',
    "'",
    "`",
    "*",
    "<",
    ">",
    "|",
]);

export const PRIVATE_TERMS: readonly PrivateTerm[] = [
    {
        digest: "b85ea084424e1008c3ccc508a63e939ff64a94e9c37d3112241b360ac77aa07b",
        first: "b85ea084424e1008c3ccc508a63e939ff64a94e9c37d3112241b360ac77aa07b",
        length: 7,
        words: 1,
    },
    {
        digest: "c843449262aab6cc4420446ffb4d14085c563bd68ab2ddb3f5a4050e0e0b5708",
        first: "c843449262aab6cc4420446ffb4d14085c563bd68ab2ddb3f5a4050e0e0b5708",
        length: 5,
        words: 1,
    },
    {
        digest: "23566dfe2b820fbad271930a4fa37fd47fe1833b1320fe28e0a09355d59c60a2",
        first: "69911acd1ed57b08060536a684c7572cab7cfec0e330ca240af59699aeebff7b",
        length: 9,
        words: 3,
    },
];

export const PRIVATE_ALLOWANCES: readonly string[] = [];

export const PUBLISHED_TEXT_EXTENSIONS: ReadonlySet<string> = new Set([
    ".conf",
    ".css",
    ".html",
    ".js",
    ".json",
    ".md",
    ".svg",
    ".ts",
    ".txt",
    ".xml",
    ".yaml",
]);

export const VCS_FOLDER = ".git";

export const PUBLISHED_ROOT_KEYS: readonly string[] = ["builds.web", "methodology"];

export const ESCAPED_SEPARATOR = String.raw`\\`;

export const DERIVE_FLAG = "--derive";

export const SOURCE_INVENTORY = "rule inventory slugs";

export const SOURCE_SEEDS = "lesson seed ids";

export const SOURCE_SURFACE_RULES = "coordination surface rule ids";

export const SOURCE_PATHS = "paths declaration keys and values";

export const SOURCE_SCRIPTS = "root package scripts";

export const SOURCE_MEMBERS = "workspace member names and directories";

export const SOURCE_STAGES = "gate stage and step labels";

export const SOURCE_LOCAL_RULES = "local rule ids";

export const SOURCE_TAXONOMY = "taxonomy containers and concern folders";

export const SOURCE_HARNESS = "harness feature names";