When the function is called from an event such as a mouse click on a button or link, eslint complains about unused-vars
because the only reference is the attached event in the HTML page.
I like the unused-vgars
warning otherwise.
My current approach is to disable the lines with the eslint-disable
line comment, i.e.
const addStreetAddressLine = () => { // eslint-disable-line no-unused-vars
but now I am sprinkling that big comment throughout my code - 3 functions so far.
Is there another approach that is a bit cleaner?