JoshuaKGoldberg / JoshuaKGoldberg/TypeStat
Default --config if one is found on disk
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 47
- Avg merge
- 15h 55m
- Merged PRs (30d)
- 21
Description
### 🚀 Feature Request
It'd be nice if running `npx typestat` after creating a `typestat.json` config file didn't require a `--config typestat.json`. Seems redundant. Extra user work.
#### Existing Behavior
No auto-detection of a `typestat.json` is done.
#### Change Proposal
If a `typestat.json` exists on disk, default the `--config` argument to point to it.
Contributor guide
Research direction
Start by locating the argument parsing and configuration-loading paths used by `npx typestat`, then check how an explicit `--config typestat.json` is handled. Implement the default only when `typestat.json` exists on disk, preserving explicit configuration behavior, and verify that running `npx typestat` discovers the file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100