Skip to content

[explicit-module-boundary-types] expects return type on methods of abstract class setter #2407

Closed
@ljosberinn

Description

@ljosberinn
  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have read the FAQ and my problem is not listed.

Repro

{
  "rules": {
    "@typescript-eslint/explicit-module-boundary-types": "error"
  }
}
export abstract class SomeClass<T> {
  abstract set value(element: T);
}

image

https://github.com/ljosberinn/explicit-module-boundary-types-bug

Expected Result
The rule should never expect a return type of a setter to be declared.

Actual Result

The rule expects a return type which is a compiler error.

Additional Info

Versions

package version
@typescript-eslint/eslint-plugin 3.9.1
@typescript-eslint/parser 3.9.1
TypeScript 3.9.7
ESLint 7.7.0
node ---

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomerspackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions