UNPKG

base-config-schema

Version:

Schema for the base-config plugin, used for normalizing config values before passing them to config.process().

13 lines (11 loc) 265 B
'use strict'; module.exports = function(app, base, options) { return function(val, key, config, schema) { if (typeof val === 'undefined') return null; if (val === false) { schema.omit('tasks'); schema.omit('_'); } return val; }; };