Skip to content
1 min read · 124 words

Variable: rules

ts
const rules: {
  artifact-tool-forbids-artifact-constructor: RuleModuleWithName<"forbidArtifactConstructor", [], unknown, RuleListener>;
  no-model-in-tool-handler: RuleModuleWithName<"noModelInHandler", [], unknown, RuleListener>;
  require-validator-any-required: RuleModuleWithName<"declareIntent", [], unknown, RuleListener>;
  thought-payload-requires-replay-tag: RuleModuleWithName<"requireReplayTag", [], unknown, RuleListener>;
  token-encoding-requires-context-window: RuleModuleWithName<"requireContextWindow", [], unknown, RuleListener>;
};

Defined in: eslint/index.ts:36

Map of rule id (without the adk/ plugin prefix) to its rule object. Registered on the plugin as rules, so configs reference them as adk/<id>.

Type Declaration

NameTypeDefault valueDefined in
artifact-tool-forbids-artifact-constructorRuleModuleWithName<"forbidArtifactConstructor", [], unknown, RuleListener>artifactToolForbidsArtifactConstructoreslint/index.ts:41
no-model-in-tool-handlerRuleModuleWithName<"noModelInHandler", [], unknown, RuleListener>noModelInToolHandlereslint/index.ts:38
require-validator-any-requiredRuleModuleWithName<"declareIntent", [], unknown, RuleListener>requireValidatorAnyRequiredeslint/index.ts:37
thought-payload-requires-replay-tagRuleModuleWithName<"requireReplayTag", [], unknown, RuleListener>thoughtPayloadRequiresReplayTageslint/index.ts:39
token-encoding-requires-context-windowRuleModuleWithName<"requireContextWindow", [], unknown, RuleListener>tokenEncodingRequiresContextWindoweslint/index.ts:40