Skip to content

Commit

Permalink
Ignore extends with --ignoreExtends to make configuration easier to test
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Sep 18, 2024
1 parent e07a250 commit f377019
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 f377019

Please sign in to comment.