Skip to content

Some typescript based eslint rules require a project to be defined. #12

@jgarst

Description

@jgarst

The eslint rule @typescript-eslint/return-await warns when returning a promise without awaiting the results. Because it requires typescript information, eslint requires it to be used only in the context of a typescript project with a tsconfig.json file.

This prevents using useful typescript rules in the context of very small scripts. I suspect that it is coherent and transparent to have eslint assume only one file when no tsconfig.json file is found, and I would like to investigate workarounds for the project requirement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions