Skip to content

Commit

Permalink
fix: don't strip empty config files (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Mar 18, 2022
1 parent ce121cb commit 67bb1ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader.ts
Expand Up @@ -100,7 +100,7 @@ export async function loadConfig<T extends InputConfig=InputConfig> (opts: LoadC
opts.overrides && { config: opts.overrides, configFile: undefined, cwd: undefined },
{ config, configFile: opts.configFile, cwd: opts.cwd },
opts.rcFile && { config: configRC, configFile: opts.rcFile }
].filter(l => l && l.config && Object.keys(l.config).length)
].filter(l => l && l.config)

// Allow extending
if (opts.extend) {
Expand Down

0 comments on commit 67bb1ee

Please sign in to comment.