{
    "$schema": "http://json-schema.org/schema",
    "title": "Validate TypeScript Files in src/ Executor",
    "description": "Validates (1) every .ts file inside an Nx project lives under src/, and (2) every .ts file in the workspace is owned by some Nx project.",
    "type": "object",
    "properties": {
        "mode": {
            "type": "string",
            "enum": ["ON", "OFF"],
            "default": "ON",
            "description": "ON = enforce both layers, OFF = skip validation"
        },
        "excludePaths": {
            "type": "array",
            "items": { "type": "string" },
            "description": "Top-level workspace directory names to skip entirely when looking for orphan .ts files. Defaults: node_modules, dist, .nx, .git, architecture, tmp, scripts. node_modules_* backup directories are always skipped regardless of this list. Override replaces the defaults — re-list any defaults you want to keep."
        },
        "allowedRootFiles": {
            "type": "array",
            "items": { "type": "string" },
            "description": "Workspace-root .ts filenames that are exempt from the 'must be owned by a project' rule. Defaults: jest.setup.ts. Override replaces the defaults."
        }
    },
    "required": []
}
