JoshuaKGoldberg / JoshuaKGoldberg/TypeStat

Default --config if one is found on disk

Open
#1,355 0 comments 0 reactions 0 assignees View on GitHub
status: accepting prs type: enhancement
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.