Question

Is there any such standalone package for Javascript, like PyFlakes for Python? I see there is JsLint, but it looks like it depends on some external things like Rhino.

I prefer something basic&compact like PyFlakes, because it shows me 80% of bugs I make and has only 20% (or even less) of complexity of other tools like PyLint.

Ideally it should also have a working recipe for plugging into Emacs, but I can figure it out myself if the tool itself is promising.

Was it helpful?

Solution

If you want a standalone version of JSLint, take a look at my jslint4java project. It embeds rhino and JSLint into an executable jar file.

The is also an example of using it with emacs in this gist.

OTHER TIPS

In JSLInt there is an 'Assume Rhino' option on JSLint which, when set to true assumes that Rhino is present and, therefore, that the global properties it provides have been defined. I believe that this is 'false' by default.

But as for a dependency, no, JSLint not dependent on Rhino.

I've not used PyFlakes or PyLint, but after scanning some of the docs, I would say that JSLint is exactly what you are after.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top