What version of Oxlint are you using?
1.57.0
What command did you run?
oxlint $file
What does your .oxlintrc.json (or oxlint.config.ts) config file look like?
What happened?
The following code triggers a typescript-eslint(no-invalid-void-type): Use void only as a return type or generic type argument error:
interface Producer<T> {
get: () => T;
}
export class Test implements Producer<void> {
get = () => null;
}
But the original no-invalid-void-type rule doesn't complain since void is used as a generic type argument.
What version of Oxlint are you using?
1.57.0
What command did you run?
oxlint $file
What does your
.oxlintrc.json(oroxlint.config.ts) config file look like?{ "categories": { "correctness": "off" }, "rules": { "no-invalid-void-type": "error" } }What happened?
The following code triggers a
typescript-eslint(no-invalid-void-type): Usevoidonly as a return type or generic type argumenterror:But the original
no-invalid-void-typerule doesn't complain sincevoidis used as a generic type argument.