| 74 | } |
| 75 | |
| 76 | export function EPLUGINCONF({ type, required, pluginConf }) { |
| 77 | return { |
| 78 | message: `The \`${type}\` plugin configuration is invalid.`, |
| 79 | details: `The [${type} plugin configuration](${linkify(`docs/usage/plugins.md#${toLower(type)}-plugin`)}) ${ |
| 80 | required ? "is required and " : "" |
| 81 | } must be a single or an array of plugins definition. A plugin definition is an npm module name, optionally wrapped in an array with an object. |
| 82 | |
| 83 | Your configuration for the \`${type}\` plugin is \`${stringify(pluginConf)}\`.`, |
| 84 | }; |
| 85 | } |
| 86 | |
| 87 | export function EPLUGINSCONF({ plugin }) { |
| 88 | return { |