I'm developing a plugin that require several third party JavaScript library in order to work, but I'm struggling to make the linting work properly.
I'm followed several guides on how to include third party library, but I haven't found the way for now.
I've tried with those approach:
- https://docs.moodle.org/dev/Javascript_Modules#Including_an_external_javascript.2Fjquery_library
- https://docs.moodle.org/dev/Plugin_with_third_party_libraries
- https://docs.moodle.org/dev/Guide_to_adding_third_party_jQuery_for_AMD
3217 problemsthe number of warning may vary depending on what library I'm trying to include, but the result is always the same.
Warning: Task "stylelint:css" failed. Use --force to continue.
Aborted due to warnings.
>>Error
I'm trying to include popular library as Datatables and Select2, I do not think that I have to manually correct all the warning (most are coding convention violation on both js and css file, sometimes error like "Unexpected console statement") , so I'm think that I'm making something wrong.
I've tried to download a plugin from the Moodle directory called "tool_datatables", trying to understand how to include datatable (I need the “editor” version, so I cannot just require the installation of the other plugin and use it's version in my code), but even that plugin rise warning. was the linting being introduced in some of the latest Moodle release?
How I can prevent Grunt from lint Datatable source code? It's an external module and of course it does not comply with moodle standard, it was not written as Moodle integration...
Am I missing something? I don't need to run grunt?
Can't understand the proper way to include something external.
Thanks to all in advance,
Mattia