golden hour
/home/phakp/public_html/wp-content/plugins/profile-builder/assets/lib/codemirror/addon/lint
⬆️ Go Up
Upload
File/Folder
Size
Actions
coffeescript-lint.js
851 B
Del
OK
css-lint.js
620 B
Del
OK
javascript-lint.js
3.93 KB
Del
OK
json-lint.js
527 B
Del
OK
lint.css
2.92 KB
Del
OK
lint.js
6.79 KB
Del
OK
Edit: coffeescript-lint.js
// Depends on coffeelint.js from http://www.coffeelint.org/js/coffeelint.js CodeMirror.registerHelper("lint", "coffeescript", function(text) { var found = []; var parseError = function(err) { var loc = err.lineNumber; found.push({from: CodeMirror.Pos(loc-1, 0), to: CodeMirror.Pos(loc, 0), severity: err.level, message: err.message}); }; try { var res = coffeelint.lint(text); for(var i = 0; i < res.length; i++) { parseError(res[i]); } } catch(e) { found.push({from: CodeMirror.Pos(e.location.first_line, 0), to: CodeMirror.Pos(e.location.last_line, e.location.last_column), severity: 'error', message: e.message}); } return found; }); CodeMirror.coffeeValidator = CodeMirror.lint.coffeescript; // deprecated
Save