Skip to content

Commit 53dff62

Browse files
committed
Fix style
1 parent 6bd32ad commit 53dff62

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

__tests__/resolveConfig.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,15 +1468,15 @@ test('plugin config can register plugins that also have config', () => {
14681468
config: {
14691469
important: true,
14701470
},
1471-
handler() {}
1471+
handler() {},
14721472
},
14731473
{
14741474
config: {
14751475
separator: '__',
14761476
},
1477-
handler() {}
1477+
handler() {},
14781478
},
1479-
]
1479+
],
14801480
},
14811481
handler() {},
14821482
},
@@ -1530,9 +1530,9 @@ test('plugin configs take precedence over plugin configs registered by that plug
15301530
config: {
15311531
prefix: 'inner-',
15321532
},
1533-
handler() {}
1534-
}
1535-
]
1533+
handler() {},
1534+
},
1535+
],
15361536
},
15371537
handler() {},
15381538
},

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const getConfigFunction = config => () => {
5656
}
5757

5858
const configObject = _.isObject(config) ? _.get(config, 'config', config) : require(config)
59-
59+
6060
return resolveConfig([configObject, defaultConfig])
6161
}
6262

src/util/resolveConfig.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import some from 'lodash/some'
22
import mergeWith from 'lodash/mergeWith'
3-
import isEmpty from 'lodash/isEmpty'
43
import isFunction from 'lodash/isFunction'
54
import isUndefined from 'lodash/isUndefined'
65
import defaults from 'lodash/defaults'
@@ -102,7 +101,7 @@ function extractPluginConfigs(configs) {
102101
allConfigs = [...allConfigs, config]
103102

104103
const plugins = get(config, 'plugins', [])
105-
104+
106105
if (plugins.length === 0) {
107106
return
108107
}

0 commit comments

Comments
 (0)