import type { JSONRuleDefinition } from "@eslint/json"; declare const CHECKED_WORD_FIELDS: readonly ["id", "name", "description"]; type CheckedWordField = (typeof CHECKED_WORD_FIELDS)[number]; declare const IGNORABLE_CHECKS: readonly ["noForbiddenWords", "descriptionFormat"]; type IgnorableCheck = (typeof IGNORABLE_CHECKS)[number]; interface ValidateManifestOptions { /** * Whether to check the id, which must not contain "obsidian" or end with * "plugin". Off by default: only a plugin not yet published can act on it. */ checkId?: boolean; /** * Words to drop from the forbidden list, per field. Some findings can never * be acted on -- a published plugin id can never change, so a plugin whose * id contains "obsidian" carries it forever. */ allowedWords?: Partial>; /** Checks to skip entirely. */ ignore?: IgnorableCheck[]; } type MessageIds = "missingKey" | "invalidType" | "disallowedKey" | "duplicateKey" | "invalidFundingUrl" | "mustBeRootObject" | "idObsidian" | "idEndsWithPlugin" | "nameObsidian" | "nameObsidianFragment" | "namePlugin" | "descriptionObsidian" | "descriptionSelfReference" | "descriptionTooShort" | "descriptionTooLong" | "descriptionPunctuation" | "descriptionSameAsName" | "descriptionStartsWithName"; type ValidateManifestRuleDefinition = JSONRuleDefinition<{ MessageIds: MessageIds; RuleOptions: [ValidateManifestOptions?]; }>; declare const rule: ValidateManifestRuleDefinition; export default rule;