Skip to content

Interface: CreateScopedRuleBuilderState ​

Defined in: builders/create-scoped-rule-builder-state.ts:11

Optional copy-on-write state for createScopedRuleBuilder.

Holds the optional external rule source, normalized ScopePredicate, directive source, and attached beforeStop check AST nodes.

Properties ​

PropertyModifierTypeDescriptionDefined in
directive?readonlySourceValue<string>Configured directive string or source.builders/create-scoped-rule-builder-state.ts:17
enforceBeforeStopChecks?readonlyreadonly BuiltInCheckASTNode<unknown>[]Attached beforeStop check AST nodes.builders/create-scoped-rule-builder-state.ts:19
source?readonlySourceASTNode<{ checks: BuiltInCheckASTNode<unknown>[]; directive: string; id: string; when: { effects?: FsGlobMatcherNode; partitions: string[]; }; }>External source AST node when wrapping a frontmatter-loaded rule.builders/create-scoped-rule-builder-state.ts:13
when?readonlyobjectConfigured scope predicate.builders/create-scoped-rule-builder-state.ts:15
when.effects?publicFsGlobMatcherNode-schemas/core-rules.schema.ts:9
when.partitionspublicstring[]-schemas/core-rules.schema.ts:8

Released under the MIT License.