What version of Oxlint are you using?
latest
What command did you run?
oxlint --type-aware
What does your .oxlintrc.json config file look like?
What happened?
In ESLint, it just errors if I use Date as a runtime value, in Oxlint it errors if I use it as a type as well. I want to allow using Date types since helpers return Date objects, but I don't want us to be calling new Date() because it has been a common source of time zone issues for us.
{ "rules": { "no-restricted-globals": [ "error", { name: "Date", message: "Use helpers or date-fns instead", }, ], } }