// JSHINT has some GPL Compatability issues, so we are faking it out and using esprima for validation
// Based on https://github.com/jquery/esprima/blob/gh-pages/demo/validate.js which is MIT licensed
var fakeJSHINT = new function() {
var syntax, errors;
var that = this;
this.data = [];
this.convertError = function( error ){
return {
line: error.lineNumber,
character: error.column,
reason: error.description,
code: 'E'
};
};
this.parse = function( code ){
try {
syntax = window.esprima.parse(code, { tolerant: true, loc: true });
errors = syntax.errors;
if ( errors.length > 0 ) {
for ( var i = 0; i < errors.length; i++) {
var error = errors[i];
that.data.push( that.convertError( error ) );
}
} else {
that.data = [];
}
} catch (e) {
that.data.push( that.convertError( e ) );
}
};
};
window.JSHINT = function( text ){
fakeJSHINT.parse( text );
};
window.JSHINT.data = function(){
return {
errors: fakeJSHINT.data
};
};
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| codemirror.min.css | 2026-02-23 19:41 | 15.53 KB | 76129f60960:kunden | -xw-x----- | |
| codemirror.min.js | 2026-02-23 19:41 | 571.69 KB | 76129f60960:kunden | -xw-x----- | |
| csslint.js | 2026-02-23 19:41 | 358.17 KB | 76129f60960:kunden | -xw-x----- | |
| esprima.js | 2026-02-23 19:41 | 276.51 KB | 76129f60960:kunden | -xw-x----- | |
| fakejshint.js | 2026-02-23 19:41 | 1002 B | 76129f60960:kunden | -xw-x----- | |
| htmlhint-kses.js | 2026-02-23 19:41 | 984 B | 76129f60960:kunden | -xw-x----- | |
| htmlhint.js | 2026-02-23 19:41 | 17.32 KB | 76129f60960:kunden | -xw-x----- | |
| jsonlint.js | 2026-02-23 19:41 | 15.81 KB | 76129f60960:kunden | -xw-x----- | |