Skip to content

Commit 4a7f21d

Browse files
committed
fix: better default for userconfig
1 parent 6bc1071 commit 4a7f21d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ exports.getUserConfig = () => {
7575
let conf = {}
7676
try {
7777
const path = exports.getUserConfigPath()
78-
if (!path) return null
78+
if (!path) {
79+
return {}
80+
}
7981
conf = require(path)
8082
} catch (err) {
8183
console.error(err) // eslint-disable-line no-console

0 commit comments

Comments
 (0)