-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[promise-function-async] problem with exported functions #227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Bug is specifically with the line
This is returning It happens because of how we create the Because the |
Hitting the same problem in my code base |
I'm the class Foo {
constructor() {
// ...
}
bar(): string {
return 'baz';
}
} I believe the issue with me is coming from the Versions
|
…pescript-eslint#227) - correct url in no-misused-new - add tslint addontation to no-namespace - enable rules: eslint-plugin/no-deprecated-context-methods, eslint-plugin/prefer-output-null fixes: typescript-eslint#213 fixes: typescript-eslint#212
Repro
code 1:
code 2
Expected Result
code 1 - no error
code 2 - lint error
Actual Result
Additional Info
No problem with non-exported function declarations:
and also with arrow functions (
checkArrowFunctions: true
):Versions
@typescript-eslint/eslint-plugin
1.2.0
@typescript-eslint/parser
1.2.0
TypeScript
3.2.4
,3.3.0
ESLint
5.13.0
node
11.8.0
npm
6.7.0
The text was updated successfully, but these errors were encountered: