Ignore extends with --ignoreExtends to make configuration easier to test (#4280)

This commit is contained in:
Peter Hedenskog 2024-09-18 12:41:37 +02:00 committed by GitHub
parent e07a25066b
commit 8d59da98f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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(