Skip to content
2 min read · 337 words

Variable: default

ts
default: {
  configs: {
     recommended: {
        name: string;
        plugins: {
           adk: Plugin;
        };
        rules: Partial<Record<string, RuleEntry>>;
     };
  };
  plugin: Plugin;
  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:73

Default export bundles the plugin and its config presets, mirroring the shape ESLint flat configs expect from a plugin module.

Type Declaration

NameTypeDefault valueDescriptionDefined in
configs{ recommended: { name: string; plugins: { adk: Plugin; }; rules: Partial<Record<string, RuleEntry>>; }; }-Named config presets. recommended enables every rule at error and registers the plugin under the adk namespace — spread it into a flat config to adopt the full set.eslint/index.ts:73
configs.recommended{ name: string; plugins: { adk: Plugin; }; rules: Partial<Record<string, RuleEntry>>; }--eslint/index.ts:62
configs.recommended.namestring'@nhtio/adk/eslint/recommended'-eslint/index.ts:63
configs.recommended.plugins{ adk: Plugin; }--eslint/index.ts:64
configs.recommended.plugins.adkPluginplugin-eslint/index.ts:64
configs.recommended.rulesPartial<Record<string, RuleEntry>>recommendedRules-eslint/index.ts:65
pluginPlugin-The ESLint plugin object. Register under the adk namespace: plugins: { adk: plugin }.eslint/index.ts:73
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>; }-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>.eslint/index.ts:73
rules.artifact-tool-forbids-artifact-constructorRuleModuleWithName<"forbidArtifactConstructor", [], unknown, RuleListener>artifactToolForbidsArtifactConstructor-eslint/index.ts:41
rules.no-model-in-tool-handlerRuleModuleWithName<"noModelInHandler", [], unknown, RuleListener>noModelInToolHandler-eslint/index.ts:38
rules.require-validator-any-requiredRuleModuleWithName<"declareIntent", [], unknown, RuleListener>requireValidatorAnyRequired-eslint/index.ts:37
rules.thought-payload-requires-replay-tagRuleModuleWithName<"requireReplayTag", [], unknown, RuleListener>thoughtPayloadRequiresReplayTag-eslint/index.ts:39
rules.token-encoding-requires-context-windowRuleModuleWithName<"requireContextWindow", [], unknown, RuleListener>tokenEncodingRequiresContextWindow-eslint/index.ts:40