1👍
✅
Currently you are only assigning values to the variable, but never actually using it. The documentation for no-unused-vars covers this nicely.
A variable is not considered to be used if it is only ever declared (var foo = 5) or assigned to (foo = 7).
Here is an example of the variable being used in your example:
Edit
I should probably include the correct way to go about going what you’re trying to do:
Source:stackexchange.com