[Vuejs]-Eslint (no-unused-vars) can't properly detect unused variable at Vue factory pattern

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 recursing-ishizaka-tujsx

Edit

I should probably include the correct way to go about going what you’re trying to do:

Edit quirky-shape-iznth

Leave a comment