[array-callback-return] False positive when in a map that uses a switch case without default because all possibilities are handled but ESLint isn't aware of that #2841
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
enhancement: new base rule extension
New base rule extension required to handle a TS specific case
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
playground link
The rule
array-callback-return
is enabled with default settings. There are no TypeScript equivalent (that's what would fix the issue).Versions
@typescript-eslint/eslint-plugin
4.9.0
@typescript-eslint/parser
4.9.0
TypeScript
4.1.2
ESLint
7.14.0
node
12.19.0
The text was updated successfully, but these errors were encountered: