I have something like this:
function removeProduct(dataProduct) {
console.log(dataProduct)
}
<button data-shop-listing="{'foo': 'fooData'}" type="button" onclick="removeProduct(this.getAttribute('data-shop-listing'));">Remove</button>
Everything looks fine, right? The problem is I have no-unused-vars linter activated and it is a requirement not to turn it off.
what would be an elegant approach to achieve this?
Thanks.