Community
Participate
Working Groups
JSLint will validate the contents of <script> tags that appear in an HTML file. Orion should be able to execute the ESLint engine on these scripts. The user should receive consistent validation whether they are editing standalone or embedded JS.
Created attachment 240830 [details] proposed fix This patch allows eslint to validate <script> blocks in HTML files. It also removes the jslint pref to use jslint for js files.
Took a quick look and I think this is OK. With this patch in place, we can actually delete jslintPlugin and jslintworker, right?
(In reply to Mark Macdonald from comment #2) > Took a quick look and I think this is OK. > Thanks for taking some time to look at this Mark. I found an issue with the offsets when you have whitespace before the closing '>' in a script tag. I'll patch that up today. > With this patch in place, we can actually delete jslintPlugin and > jslintworker, right? No, it is still used to lint HTML and JSON and provides an HTML outline. If we decide that we don't care about any of that, then yes, we can turf it.
Fixed in: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=53a10417a290393c80af80ba7e54ebc843a0f26e
(In reply to Michael Rennie from comment #3) > No, it is still used to lint HTML and JSON and provides an HTML outline. If > we decide that we don't care about any of that, then yes, we can turf it. Oh right. I have some thoughts on this, I opened bug 430301 for it.