Skip to content

Commit

Permalink
Fix deep objects
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jan 23, 2022
1 parent 68d3490 commit d3dc50a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/config/normalize/properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
checkArrayLength,
checkDefinedString,
checkJson,
checkObject,
} from './check.js'
// eslint-disable-next-line import/max-dependencies
import { normalizeConfigPath, normalizeConfigGlob } from './path.js'
Expand Down Expand Up @@ -71,6 +72,9 @@ const force = {

const inputs = {
default: {},
normalize(value, { name }) {
checkObject(value, name)
},
}

const inputsAny = {
Expand Down Expand Up @@ -154,6 +158,9 @@ const reporterAny = {

const reporterConfig = {
default: {},
normalize(value, { name }) {
checkObject(value, name)
},
}

const runner = {
Expand All @@ -177,6 +184,9 @@ const runnerAny = {

const runnerConfig = {
default: {},
normalize(value, { name }) {
checkObject(value, name)
},
}

const save = {
Expand Down Expand Up @@ -247,6 +257,9 @@ const since = {

const system = {
default: {},
normalize(value, { name }) {
checkObject(value, name)
},
}

const systemAny = {
Expand All @@ -256,6 +269,7 @@ const systemAny = {
}

const tasks = {
default: [],
normalize(value) {
return normalizeOptionalArray(value)
},
Expand All @@ -270,6 +284,9 @@ const tasksAny = {

const titles = {
default: {},
normalize(value, { name }) {
checkObject(value, name)
},
}

const titlesAny = {
Expand Down

0 comments on commit d3dc50a

Please sign in to comment.