Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function updateConfig(config: ProcessedStyleGuidistConfigObject) {
// Set verbose mode from config option or command line switch
config.verbose = config.verbose || !!process.env.VUESG_VERBOSE
// Setup logger *before* config validation (because validations may use logger to print warnings)
setupLogger(config.logger, config.verbose)
return config
}
config = getConfig(config, (config: ProcessedStyleGuidistConfigObject) => {
setupLogger(config.logger, config.verbose, {})
if (typeof updateConfig === 'function') {
updateConfig(config)
}
return config
})