Skip to content

[explicit-module-boundary-types] Complains about inner function expressions in arrow functions #2161

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

Closed
essenmitsosse opened this issue Jun 3, 2020 · 0 comments · Fixed by #2169
Labels
bug Something isn't working has pr there is a PR raised to close this package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@essenmitsosse
Copy link

essenmitsosse commented Jun 3, 2020

Repro

{
  "rules": {
    "@typescript-eslint/explicit-function-return-type": [2, {"allowExpressions": true}],
    "@typescript-eslint/explicit-module-boundary-types": [2]
  }
}
export const foo = (): (n: number) => string => (n) => String(n)

Expected Result

Shouldn't give an error, since this issue was fixed for regular functions (#1845).

Actual Result

Gives the same errors as for regular functions prior to 3.1.0

Missing return type on function. eslint(@typescript-eslint/explicit-module-boundary-types)
Argument 'n' should be typed. eslint(@typescript-eslint/explicit-module-boundary-types)

Additional Info

Reproduction repo: https://github.com/essenmitsosse/typescript-eslint-explicit-module-boundary-types

Versions

package version
@typescript-eslint/eslint-plugin 3.1.0
@typescript-eslint/parser 3.1.0
TypeScript 3.9.3
ESLint 7.1.0
node 13.14.0
npm 6.14.4
@essenmitsosse essenmitsosse added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for team members to take a look labels Jun 3, 2020
@bradzacher bradzacher added bug Something isn't working has pr there is a PR raised to close this and removed triage Waiting for team members to take a look labels Jun 3, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working has pr there is a PR raised to close this package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin
Projects
None yet
2 participants