CoreFiles by mySites.guru
javascript-lint.min.js1 lines, 1,663 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
22c43fd987b1bf2b43f9a5e4b9067b65
sha1
aa2985a072e3fbcd928cc95befc71fe1ab878255
sha256
c6b7683b56d37d28d325c763b1c3a06de8730d754499029d9820c2d8a8aeeb55
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function r(r,i){if(!window.JSHINT)return window.console&&window.console.error("Error: window.JSHINT not defined, CodeMirror JavaScript linting cannot run."),[];JSHINT(r,i,i.globals);var o=JSHINT.data().errors,t=[];return o&&function(r,i){for(var o=0;o<r.length;o++){var t=r[o];if(t){var a,c;if(a=[],t.evidence){var s=a[t.line];if(!s){var d=t.evidence;s=[],Array.prototype.forEach.call(d,function(e,r){"\t"===e&&s.push(r+1)}),a[t.line]=s}if(s.length>0){var f=t.character;s.forEach(function(e){f>e&&(f-=1)}),t.character=f}}var l=t.character-1,u=l+1;t.evidence&&(c=t.evidence.substring(l).search(/.\b/))>-1&&(u+=c),t.description=t.reason,t.start=t.character,t.end=u,(t=n(t))&&i.push({message:t.description,severity:t.severity,from:e.Pos(t.line-1,l),to:e.Pos(t.line-1,u)})}}}(o,t),t}function n(e){return i(e,t,"warning",!0),i(e,a,"error"),function(e){for(var r=e.description,n=0;n<o.length;n++)if(-1!==r.indexOf(o[n]))return!0;return!1}(e)?null:e}function i(e,r,n,i){var o,t,a,c,s;o=e.description;for(var d=0;d<r.length;d++)a="string"==typeof(t=r[d])?t:t[0],c="string"==typeof t?null:t[1],s=-1!==o.indexOf(a),(i||s)&&(e.severity=n),s&&c&&(e.description=c)}var o=["Dangerous comment"],t=[["Expected '{'","Statement body should be inside '{ }' braces."]],a=["Missing semicolon","Extra comma","Missing property name","Unmatched "," and instead saw"," is not defined","Unclosed string","Stopping, unable to continue"];e.registerHelper("lint","javascript",r)});

No other release has this exact content. See every version of this file.