jslintmate icon indicating copy to clipboard operation
jslintmate copied to clipboard

run on unsaved code?

Open mspreij opened this issue 9 years ago • 1 comments

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?

mspreij avatar Dec 23 '15 15:12 mspreij

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.

rondevera avatar Dec 23 '15 21:12 rondevera