jslintmate
jslintmate copied to clipboard
run on unsaved code?
I would like to run a syntax check on the source without saving (so if the syntax is broken, it'll keep working in the browser, where I might be testing other things at the same time).
Is this possible?
Unfortunately not—JSLintMate is designed to only support saved files. Internally, JSLintMate passes file paths to JSLint and JSHint; it could potentially pass around a huge string of unsaved source code, but could get messy.
When I've been in this situation in the past, I've copied the unsaved source code into a new file, then saved and iterated on that. (You might already be doing this.) It's not the same, but it works.