Closed
Description
Repro
{
"rules": {
"typescript/promise-function-async": "error"
}
}
function trim(query) {
return query.trim();
}
Expected Result
I expected the rule to only report on functions that return a promise.
Actual Result
It reports on functions returning any
.
Additional Info
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
1.5.0 |
@typescript-eslint/parser |
1.5.0 |
TypeScript |
3.3.3333 |
ESLint |
5.15.3 |
node |
10.15.1 |
npm |
6.9.0 |