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.
The eslint rule
@typescript-eslint/return-awaitwarns 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.