Closed as not planned
Description
Suggestion
Splits from #8295 (comment)
The proposal is to go over all of the places where we check if a node is a specific identifier and use a util for that. Here are a couple of examples of places we do this:
typescript-eslint/packages/eslint-plugin/src/rules/array-type.ts
Lines 31 to 34 in 82cb9dd
typescript-eslint/packages/eslint-plugin/src/rules/no-explicit-any.ts
Lines 110 to 114 in e77616b
I think we can take inspiration from this existing function and extract it to a util:
It might be a nice good first issue
PR 😄