fix(config): skip validating compatibility object

Closes #4889
This commit is contained in:
Rhys Arkins 2019-11-27 06:48:49 +01:00
parent f0d4995fda
commit 54a1da4446

View file

@ -222,7 +222,7 @@ export async function validateConfig(
message: `Configuration option \`${currentPath}\` should be a string`, message: `Configuration option \`${currentPath}\` should be a string`,
}); });
} }
} else if (type === 'object') { } else if (type === 'object' && currentPath !== 'compatibility') {
if (is.object(val)) { if (is.object(val)) {
const ignoredObjects = options const ignoredObjects = options
.filter(option => option.freeChoice) .filter(option => option.freeChoice)