-
-
Notifications
You must be signed in to change notification settings - Fork 951
linter: false positive for explicit-module-boundary-types #20434
Copy link
Copy link
Labels
A-linterArea - LinterArea - Linter
Description
What version of Oxlint are you using?
1.56.0
What command did you run?
oxlint $file.ts
What does your .oxlintrc.json (or oxlint.config.ts) config file look like?
What happened?
The following code triggers two typescript-eslint(explicit-module-boundary-types): Missing return type on function errors, one each for f and g:
type F = () => number;
export const OBJ = {
f: (() => 42) satisfies F,
};
export class Class {
g = (() => 42) satisfies F;
}But the original @typescript-eslint/explicit-module-boundary-types rule doesn't complain since f and g are wrapped with satisfies.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-linterArea - LinterArea - Linter
Type
Fields
Give feedbackPriority
None yet
Effort
None yet
{ "rules": { "typescript/explicit-module-boundary-types": "error" } }