Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jun 5, 2022
1 parent f6b6d4a commit 4b514b8
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions src/config/load/normalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@ export const normalizeConfigProp = async function (configOpt, base) {
return configPaths
}

const configProp = {
name: 'config',
default: getDefaultConfig,
transform: normalizeArray,
}

const configPropAny = {
name: 'config.*',
required: true,
path: normalizeConfigFilePath,
transform: resolveConfig,
}

export const CONFIG_RULES = [configProp, configPropAny]
export const CONFIG_RULES = [
{
name: 'config',
default: getDefaultConfig,
transform: normalizeArray,
},
{
name: 'config.*',
required: true,
path: normalizeConfigFilePath,
transform: resolveConfig,
},
]

0 comments on commit 4b514b8

Please sign in to comment.