Ignore extends with --ignoreExtends to make configuration easier to test (#4280)
This commit is contained in:
parent
e07a25066b
commit
8d59da98f2
|
|
@ -36,6 +36,9 @@ let config;
|
|||
|
||||
try {
|
||||
config = configPath ? JSON.parse(readFileSync(configPath)) : undefined;
|
||||
if (config && process.argv.includes('--ignoreExtends')) {
|
||||
delete config.extends;
|
||||
}
|
||||
} catch (error) {
|
||||
if (error instanceof SyntaxError) {
|
||||
console.error(
|
||||
|
|
|
|||
Loading…
Reference in New Issue