Skip to content

Commit

Permalink
Remove top validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jan 16, 2022
1 parent 60252e5 commit e661829
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
2 changes: 0 additions & 2 deletions src/config/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ import { normalizeConfig } from './normalize.js'
import { normalizeConfigPaths } from './path.js'
import { pickCommandConfig } from './pick.js'
import { addPlugins } from './plugin/add.js'
import { validateConfig } from './validate.js'

// Retrieve configuration
export const getConfig = async function (command, configFlags = {}) {
const { config, configInfos } = await loadConfig(configFlags)
validateConfig(config)
const configA = addDefaultConfig(config, command)
const configB = pickCommandConfig(configA, command)
const configC = normalizeConfig(configB)
Expand Down
1 change: 1 addition & 0 deletions src/config/normalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const applyNormalizer = function (value, name, normalizer) {
return newValue === undefined ? value : newValue
}

// TODO: missing `config`, `reporterConfig`, `runnerConfig`
const NORMALIZERS = {
colors: [checkBoolean],
cwd: [checkDefinedString],
Expand Down
24 changes: 0 additions & 24 deletions src/config/validate.js

This file was deleted.

0 comments on commit e661829

Please sign in to comment.