getManifestObject
Reads the manifest’s root object out of the visited Document node.
Import:
import { getManifestObject } from '@mnaoumov/obsidian-dev-toolkit/linters/eslint-rules/manifest-helpers';Signature:
function getManifestObject(node: unknown): JsonObjectNode | nullParameters:
| Parameter | Type | Description |
|---|---|---|
node |
unknown | The Document node handed to the rule’s visitor. |
Returns: JsonObjectNode | null — The root object node, or null when the document’s top-level value is not an object.