@metamask/snaps-utils
Version:
A collection of utilities for MetaMask Snaps
12 lines • 503 B
JavaScript
/**
* 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