Skip to content

@typescript-eslint/explicit-function-return-type does not work in .js files, need preset config for JS files #8955

Closed as not planned
@OlivierZal

Description

@OlivierZal

Before You File a Proposal Please Confirm You Have Done The Following...

Description

@typescript-eslint/explicit-function-return-type is not a "type-checked" rule but could belong to the disableTypeChecked config since it does not make sense to require a return type in a context where types are not checked / mandatory, e.g. in .js files.

Impacted Configurations

disableTypeChecked config

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: eslint-pluginIssues related to @typescript-eslint/eslint-pluginpreset config changeProposal for an addition, removal, or general change to a preset configwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions