Sometime ago I asked this question: Enable javascript validation for eclipse
I wanted eclipse to highlight javascript errors/warnings.. The problem as you can see in
Partial response (coz Need ans asked in comment): you can convert your project to a JavaScript project by adding the following nature to the .project
file contained at the root of your project:
</projectDescription>
//... other project settings
<natures>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
If you are not able to find .project
see Showing or hiding files in the Project Explorer view for more details.
To add JavaScript perspective to your project follow the steps below.
Steps to enable/disable validators in your project or workspace:
Click Window > Preferences and select Validation in the left pane. The Validation page of the Preferences window lists the validators available in your project and their settings.
To enable individual validators, clear the check boxes next to each
validator that you want to enable. Each validator has a check box to
specify whether it is enabled for manual validation or on a build.
Click OK.
Also there is an alternative solution available. Do check this out.