Fix style

This commit is contained in:
Adam Wathan 2019-10-12 13:41:28 -04:00
parent 6bd32ad595
commit 53dff626a7
3 changed files with 8 additions and 9 deletions

View File

@ -1468,15 +1468,15 @@ test('plugin config can register plugins that also have config', () => {
config: {
important: true,
},
handler() {}
handler() {},
},
{
config: {
separator: '__',
},
handler() {}
handler() {},
},
]
],
},
handler() {},
},
@ -1530,9 +1530,9 @@ test('plugin configs take precedence over plugin configs registered by that plug
config: {
prefix: 'inner-',
},
handler() {}
}
]
handler() {},
},
],
},
handler() {},
},

View File

@ -56,7 +56,7 @@ const getConfigFunction = config => () => {
}
const configObject = _.isObject(config) ? _.get(config, 'config', config) : require(config)
return resolveConfig([configObject, defaultConfig])
}

View File

@ -1,6 +1,5 @@
import some from 'lodash/some'
import mergeWith from 'lodash/mergeWith'
import isEmpty from 'lodash/isEmpty'
import isFunction from 'lodash/isFunction'
import isUndefined from 'lodash/isUndefined'
import defaults from 'lodash/defaults'
@ -102,7 +101,7 @@ function extractPluginConfigs(configs) {
allConfigs = [...allConfigs, config]
const plugins = get(config, 'plugins', [])
if (plugins.length === 0) {
return
}