no-unused-vars confused when var is re-assigned with return value of function that takes it as argument #6646
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
rule
Relates to ESLint's core rules
3.0.1
default
https://github.com/openlayers/eslint-config-openlayers/blob/master/index.js
https://github.com/openlayers/ol3/blob/9b3c4294c146dd929ecd4c8c0188dfc01580e30c/src/ol/render/canvas/canvasreplay.js#L1085-L1090
Like in v2.x, I would expect that eslint does not complain, since
offset
is clearly used.eslint complains about
offset
being defined but never used:This problem came up in openlayers/openlayers#5569.
The text was updated successfully, but these errors were encountered: