The following JS:
(function() { \"use strict\"; $(\"#target\").click(function(){ console.log(\"clicked\"); }); }());
Yields:
You probably want to do the following,
const $ = window.$
to avoid it throwing linting error.