sudo apt-get install rhino # Note https://bugs.launchpad.net/ubuntu/+source/rhino/+bug/93885
Then get JSLint offline version from here.
Running JSLint straight from the Eclipse
Drag and drop jslint.js to your project/scripts folder in Eclipse.
Create a new External tool like in the example below.
Then you can run it by just clicking “run external tool” icon. Output comes to the console window.