UNPKG

@metamask/snaps-utils

Version:
12 lines 503 B
/** * Suggest including an icon if not found in manifest. */ export const iconDeclared = { severity: 'warning', semanticCheck(files, context) { if (!files.manifest.result.source.location.npm.iconPath) { context.report('No icon found in the Snap manifest. It is recommended to include an icon for the Snap. See https://docs.metamask.io/snaps/how-to/design-a-snap/#guidelines-at-a-glance for more information.'); } }, }; //# sourceMappingURL=icon-declared.mjs.map