What version of Oxlint are you using?
1.59.0
What command did you run?
oxlint --config ./.oxlintrc.json
What does your .oxlintrc.json (or oxlint.config.ts) config file look like?
What happened?
A potentially undefined result of a potentially undefined function is not checked against the no-meaningless-void-operator rule :
const foo = (() => { }) as (() => void) | undefined;
void foo?.();
In typescript-eslint with "@typescript-eslint/no-meaningless-void-operator": "error" it does detect an error
but not with oxc (1.59.0) / tsgolint (0.20.0).
What version of Oxlint are you using?
1.59.0
What command did you run?
oxlint --config ./.oxlintrc.json
What does your
.oxlintrc.json(oroxlint.config.ts) config file look like?{ "plugins": ["typescript"], "rules": { "typescript/no-meaningless-void-operator": "error", } }What happened?
A potentially undefined result of a potentially undefined function is not checked against the no-meaningless-void-operator rule :
In typescript-eslint with
"@typescript-eslint/no-meaningless-void-operator": "error"it does detect an errorbut not with oxc (1.59.0) / tsgolint (0.20.0).