Skip to content

linters/eslint-rules/manifest-funding-url

ESLint rule: manifest-funding-url

Reports an empty fundingUrl in a plugin’s manifest.json: an empty string, an empty object, or an object entry whose value is an empty string.

obsidianmd/validate-manifest checks the rest of the manifest’s structure - the required, unknown and duplicate keys, each value’s type, and that a fundingUrl object holds only strings - but accepts an empty one, which names no place to donate.

Runs on the @eslint/json json/json language; see manifest-helpers.ts for why the AST is Momoa rather than ESTree.

Variable Description
manifestFundingUrl ESLint rule reporting an empty fundingUrl in a plugin’s manifest.json.
MESSAGE_ID_EMPTY_FUNDING_URL Message ID reported when fundingUrl is an empty string, an empty object, or an object with an empty value.