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: json-lint.js
// Depends on jsonlint.js from https://github.com/zaach/jsonlint CodeMirror.registerHelper("lint", "json", function(text) { var found = []; jsonlint.parseError = function(str, hash) { var loc = hash.loc; found.push({from: CodeMirror.Pos(loc.first_line - 1, loc.first_column), to: CodeMirror.Pos(loc.last_line - 1, loc.last_column), message: str}); }; try { jsonlint.parse(text); } catch(e) {} return found; }); CodeMirror.jsonValidator = CodeMirror.lint.json; // deprecated
Save