I'm currently using the fullcalendar lib to show some events on a basic calendar. Although working with lockerService activated, whenever I use the Salesforce Lightning CLI for code validation I get some errors.
Here's a snippet of the code:
loadDataToCalendar :function(component, data){
// get the div element
var myDiv = component.find("calendar").getElement();
// execute fullcalendar function
$(myDiv).fullCalendar({ //some options and data });
// call render function to update calendar
$(myDiv).fullCalendar('render');
}
I get the following errors on the console using CLI:
error secure-window Unexpected $
Line: $(myDiv).fullCalendar({error no-undef '$' is not defined
Line: $(myDiv).fullCalendar({error secure-window Unexpected $
Line: $(myDiv).fullCalendar('render');error no-undef '$' is not defined
Line: $(myDiv).fullCalendar('render');
How can I select a div element, with or without jquery, and call the fullcalendar function while being compliant with the LockerService security architecture? Any workarounds?