-
-
Notifications
You must be signed in to change notification settings - Fork 212
Enhancement - no-get rule and auto-fix #1840
Copy link
Copy link
Closed
Labels
Description
As is mentioned here in the test file, we currently don't identify or auto-fix get on a non-string. This means when the non-string is a variable name, we deem it as valid.
This ticket propose that we identify and auto-fix for those use cases.
Expectations:
obj.get(5) ===> obj[5] // obj.get(5) is legal as I tested.
obj.get(foo) ===> obj[foo]
Reactions are currently unavailable