You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[jshint] the plugin try to validate html files #345
Activity
angelozerr commentedon Oct 7, 2015
As you can have JS in your HTML, validation is done to HTML.
You could use JSDT Include Path to exclude path, but I think validation will be done inside HTML when you are typing.
What is your suggestion to disable HTML validation for JS, a preferences option?
jabby commentedon Oct 7, 2015
In fact I didn't realise that I can put JS in html file :)
An option to disable analyze of html file would be great for me.
angelozerr commentedon Oct 7, 2015
Just for validation? Or for both validation and completion?
jabby commentedon Oct 7, 2015
I think it will be more consistent if the option disable validation and completion.
If I want to write JS in html file, I need completion. So if I enable the validation, tern should also validate the JS in html file.
is there an option to enable / disable autocomplete in html file ?
angelozerr commentedon Oct 7, 2015
Yes you are right.
No. I know that MyEclipse has done something for Tern Performance vs Quality https://www.genuitec.com/forums/topic/troubleshooting-performance-issues-in-myeclipse-2015/ I must think about more to implement your idea.
jabby commentedon Oct 8, 2015
I found a workaround for my problem. On my project I modify the tern Validation configuration.
I remove all references for jsp, html, htm and php file. Now, jshint validate only js files.
angelozerr commentedon Dec 11, 2015
@jabby is .jshintignore could help you?
A PR was created at #377
jabby commentedon Dec 11, 2015
@angelozerr I think it could help and it will be a great improvement. With this, I will disable validation on my generated JS files.