-
-
Notifications
You must be signed in to change notification settings - Fork 720
Labels
A-linterArea - LinterArea - Linter
Description
What version of Oxlint are you using?
playground
What command did you run?
What does your .oxlintrc.json config file look like?
consistent-type-definitions: 'error'
What happened?
Input:
declare /* type */ type T = {};Expected:
declare /* type */ type T = {};
^^^^ error hereActual:
declare /* type */ type T = {};
^^^^ error hereBecause oxc/oxlint doesn't work with tokens it is unable to distinguish between comment text and code text.
Side note that I suspect that if I had a bit of a poke around I could find a few bugs like this. It's the major weaknesses of relying on String::find on top of source code instead of having a CST to inspect.
Metadata
Metadata
Assignees
Labels
A-linterArea - LinterArea - Linter