Allow $schema property in json config files (#14067)

* Fix: Error on  property in json config files

* options[] delete moved down
This commit is contained in:
Sneh Khatri
2021-12-29 08:43:14 +05:30
committed by GitHub
parent 69ae3b5a25
commit 2c68d03bf2
3 changed files with 19 additions and 0 deletions

View File

@@ -272,6 +272,8 @@ const readConfigJSON5 = makeStaticFileCache((filepath, content): ConfigFile => {
throw new Error(`${filepath}: Expected config object but found array`);
}
delete options["$schema"];
return {
filepath,
dirname: path.dirname(filepath),