Skip to content

Commit

Permalink
Ignore extends with --ignoreExtends to make configuration easier to t…
Browse files Browse the repository at this point in the history
…est (#4280)
  • Loading branch information
soulgalore authored Sep 18, 2024
1 parent e07a250 commit 8d59da9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/cli/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8d59da9

Please sign in to comment.