Is there a JSLint Eclipse plugin?

Can anyone point out the functionality of the JSLint plugin for Eclipse?

+58
eclipse jslint eclipse-plugin
Apr 29 2018-10-29T00:
source share
5 answers

There is a plugin here and it works fine. (the site did not work in 2011)
Update site http://update.rockstarapps.com/site.xml (site down 2012-07-24)

You can also run jslint4java as an external tool:

  • Download jslint4java
  • Put jslint4java.jar somewhere
  • Add external tool settings to Eclipse (Launch> External Tools> External Tool Configurations> Program> Create ...):
     Location: / usr / bin / java
               (or your path to javaw.exe)
     Arguments: -jar /path/to/jslint4java.jar $ {resource_loc}
    

Now you can select the js file in Project Explorer and run jslint4java from the menu of external tools.

+27
May 01 '10 at 14:22
source share

Use this:

In Eclipse, install the new software at http://svn.codespot.com/a/eclipselabs.org/mobile-web-development-with-phonegap/tags/r1.2/download

I used jslint4java to add jslint to the Eclipse plugin for Android PhoneGap. If you are not interested in PhoneGap or Android, you can only select the jslint4java function in the installation wizard

Usage information here .

+43
Feb 26 '11 at 1:32
source share

I think I found the simplest solution. If you install Aptana Studio , the free Eclipse plugin, among other things, you get excellent JavaScript IDEs with support for Ext, jQuery and other major libraries.

Using these instructions (copied here in case of blocking blogs), you can easily enable JSLint support.

You can enable it by doing:

  • Open Aptana Studio - Choose Window> Preferences
  • Go to Aptana> Editors> JavaScript> Check in the menu on the left.
  • Check "JSLint JavaScript Validator" - click "OK" - "Go to Window"> "Show View"> "Validation" (you may need to go to Show View - Other - Aptana Views)
  • You will see a check in the lower right corner of the screen. Now also click "Toggle Information" and "Toggle Alerts" (located in the upper left corner of the verification panel).

You are all set. JSLint will warn you when writing code

+26
Jan 05 '11 at 21:00
source share

Alternatively, you can consider the JsHint Eclipse plugin. From what the project goal reads, JSHint was originally a JsLHint fork with a larger configuration of parameters.

Eclipse Plugin http://github.eclipsesource.com/jshint-eclipse/

JsHint Link http://www.jshint.com/about/

+20
Apr 05 2018-12-12T00:
source share

I do it differently, which goes well with the IDE. In eclipse, most of this time is set up once, and after that it becomes pretty easy to check your code.

  • Help → Install New Software
  • Click the Add button
  • spend choices and check out Rockstar JsLint
  • Click "Next" ... again
  • Accept and Install
    • (you need to click “OK” when it prompts you to install unsigned content).
  • Restart Eclipse ...

Almost done

Now that you want to test your javascript, right-click the Rockstarapps → Validate with JsLint ... file

customize your verification settings and made by you. (usually I just recommend) problems will appear in the problem panel.

+6
Apr 15 '11 at 1:28
source share



All Articles