Skip to content

linter: warn when using --type-check without --type-aware #20024

@TheAlexLichter

Description

@TheAlexLichter

What version of Oxlint are you using?

latest

What command did you run?

pnpx oxlint --type-check

What does your .oxlintrc.json (or oxlint.config.ts) config file look like?

does not matter

What happened?

--type-check can only be used with --type-aware at the moment. Just running pnpx oxlint --type-check will silently not type check, which can be confusing for users.

Suggestions to improve this:

  1. Warn (easiest and most predictable)
  2. Run as if it would be --type-aware --type-check (might be unexpected behavior)
  3. Just type check (Would feel a bit weird though)

Metadata

Metadata

Assignees

Labels

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions