Rule proposal: consistent typing for Map and Set #3494
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
enhancement: new plugin rule
New rule request for eslint-plugin
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
I sometimes forget that I can type Map/Set with a generic on the right hand side. I'd like to add a rule to enforce typing Map/Set with a generic on the RHS, instead of typing the variable on the LHS.
This would be an error:
And would autocorrect to:
The text was updated successfully, but these errors were encountered: