oxc icon indicating copy to clipboard operation
oxc copied to clipboard

linter: `eslint/no-undef` does not know about native types

Open Sysix opened this issue 3 months ago • 1 comments

What version of Oxlint are you using?

0.10.3

What command did you run?

oxlint -c .oxlint.json

What does your .oxlint.json config file look like?

{
  "categories": {
    "correctness": "off"
  },
  "rules": {
    "no-undef": "error"
  }
}

What happened?

It detects Typescript Types as not defined.

Here are some more examples Types which should pass: Omit, Lowercase, Exclude, InstanceType

  × eslint(no-undef): 'Record' is not defined.
    ╭─[src/build-from-oxlint-config.ts:18:31]
 17 │ 
 18 │ type OxlintConfigCategories = Record<string, unknown>;
    ·                               ──────
 19 │ 
    ╰────

Sysix avatar Oct 29 '24 17:10 Sysix