[no-explicit-any] allow any
in a keyof any
expression
#3206
Labels
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
wontfix
This will not be worked on
Repro
Currently, the expression
keyof any
is probably the only (sane) way of saying "a type of things that can be object keys". But it is disallowed underno-explicit-any
.The long way of
string | number | symbol
isn't portable enough because of thesymbol
part.Versions
@typescript-eslint/eslint-plugin
4.18.0
@typescript-eslint/parser
4.18.0
TypeScript
4.2.3
ESLint
7.22.0
node
14.15.4
The text was updated successfully, but these errors were encountered: