Skip to content

[explicit-function-return-type] only apply to exported functions #65

@SimenB

Description

@SimenB

I'd like to propose a change to an existing rule.

Description

It can be unnecessarily verbose to type every single functions return type, but I'd love to enforce typing of functions exported from a file. I find that then the type errors are closer to the actual error, rather than having bubbled up multiple functions, while still being less onerous to do. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestenhancement: plugin rule optionNew rule option for an existing eslint-plugin rulegood first issueGood for newcomershas prthere is a PR raised to close thispackage: 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