-
Notifications
You must be signed in to change notification settings - Fork 179
Closed
Description
Summary
Invalid react-doctor.config.json handling has two problems:
- parse warning is logged twice in a single run
- fallback to
package.jsonreactDoctorconfig is skipped
Current behavior
When react-doctor.config.json is malformed, loadConfig logs a warning and returns early. This causes:
- duplicated warning output (config loaded in two places)
- no fallback to embedded
package.jsonconfig
Reproduction
- Put malformed JSON in
react-doctor.config.json. - Add valid
reactDoctorconfig inpackage.json. - Run
react-doctor ..
Observed:
- parse warning appears twice
- behavior does not use valid fallback config from
package.json
Expected behavior
- parse warning should appear once per run
- malformed
react-doctor.config.jsonshould still allow fallback topackage.jsonreactDoctor
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels