Skip to content

Interface: SourcedScopedRuleNode ​

Defined in: ast/sourced-scoped-rule-node.ts:11

Source-backed ScopedRuleNode variant loaded from a SourceASTNode<ScopedRule> (such as md.frontmatter).

Resolves rule frontmatter and body at run start while allowing code-level when or directive overrides.

Extends ​

Properties ​

PropertyModifierTypeDescriptionOverridesDefined in
directive?readonlySourceValue<string>Optional code-level directive overriding the source's directive body.-ast/sourced-scoped-rule-node.ts:21
enforceBeforeStopChecksreadonlyreadonly BuiltInCheckASTNode<unknown>[]Deterministic beforeStop checks enforced when this rule is active and scope mutations occur.-ast/sourced-scoped-rule-node.ts:23
idreadonlystringUnique identifier of the scoped rule.-ast/sourced-scoped-rule-node.ts:15
sourcereadonlySourceASTNode<{ checks: BuiltInCheckASTNode<unknown>[]; directive: string; id: string; when: { effects?: FsGlobMatcherNode; partitions: string[]; }; }>External source AST node resolving to a ScopedRule object.-ast/sourced-scoped-rule-node.ts:17
typereadonly"harness:scoped-rule"Discriminant identifying a scoped rule AST node.ASTNode.typeast/sourced-scoped-rule-node.ts:13
when?readonlyobjectOptional code-level when predicate overriding or augmenting the source's frontmatter predicate.-ast/sourced-scoped-rule-node.ts:19
when.effects?publicFsGlobMatcherNode--schemas/core-rules.schema.ts:9
when.partitionspublicstring[]--schemas/core-rules.schema.ts:8

Released under the MIT License.