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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user