I am new to ES6 and converting some old code to ES6.I have some ES5 code where I override some jquery methodslike below:
(function($){
$.fn.val = function() {
};
}(jQuery) ---> I'm getting a ESlint 'no-undef' 'jQuery' is not defined error.
How can I fix it?