Skip to content

[@typescript-eslint/explicit-function-return-type] context not recognized #2267

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
NonPolynomial opened this issue Jul 2, 2020 · 5 comments
Labels
bug Something isn't working package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@NonPolynomial
Copy link

Repro

rules:
  '@typescript-eslint/explicit-function-return-type': error
const list: readonly {
  readonly foo: (bar: string) => boolean // set return type
}[] = [
  {
    foo: (bar) => true, // <- ESLint complains here
  },
]

Expected Result
ESLint not complaining about missing return type within the array

Actual Result
ESLint complaining about missing return type within the array

Versions

package version
@typescript-eslint/eslint-plugin 2.34.0
@typescript-eslint/parser 2.34.0
TypeScript 3.9.3
ESLint 7.1.0
node 14.2.0
npm 6.14.4
@NonPolynomial NonPolynomial added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for team members to take a look labels Jul 2, 2020
@bradzacher
Copy link
Member

Same issue as #2183

@bradzacher bradzacher added bug Something isn't working and removed triage Waiting for team members to take a look labels Jul 2, 2020
@dman777
Copy link

dman777 commented Jul 22, 2020

I am hitting this issue also with

  rules: {
    '@typescript-eslint/explicit-function-return-type': 'off',
  },

@dman777

This comment has been minimized.

@bradzacher
Copy link
Member

This is an open source project run by volunteers.

If something is important to you, feel free to submit a PR.

If you are unable to submit a PR - that's perfectly fine! But please don't bump an issue thread with a bump comment. These comments just spam people with notifications. It doesn't do anything good and just annoys people, reducing the likelihood of someone else fixing this.

@typescript-eslint typescript-eslint deleted a comment from dman777 Dec 2, 2020
@NonPolynomial
Copy link
Author

seems to be fixed with #2805
🙌🎉

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin
Projects
None yet
Development

No branches or pull requests

3 participants