Skip to content

[explicit-function-return-type] Add option to ignore methods with specific names #541

Closed
@stasgavrylov

Description

@stasgavrylov

Hi everyone, and thanks for all the great work on this plugin.

It would be nice if explicit-function-return-type would allow a way to set specific functions/methods to ignore for this check.
I don't think it makes a lot of sense to declare types on React lifecycle methods, like render or componentDidMount.
These methods probably shouldn't be ignored by eslint-plugin itself, but maybe it could provide an escape hatch for other plugins to use?

Right now the only 2 options available for this rule still do not allow to do this.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issueenhancement: plugin rule optionNew rule option for an existing eslint-plugin rulepackage: 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