You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the issue here is that NodeListOf is a typescript-only type, it's not a runtime global. Oxlint also warns on standard Typescript helper types like Partial:
⚠ eslint(no-undef): 'Partial' is not defined.
╭─[test.ts:5:10]
4 │
5 │ const a: Partial<Name> = {}
· ───────
╰────
So I think the options are:
Add support for TypeScript globals, not just JS ones
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?What happened?
It does not know about this specific types:
Others lines like:
const abc: Element | null = document.querySelector('.xxx');
are workingThe text was updated successfully, but these errors were encountered: