Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
a JSLint server for more expedient linting
JavaScript Emacs Lisp
branch: master
Failed to load latest commit information.
views app.js: update to work with express 1.0.0rc3.
app.js app.js: update to work with express 1.0.0rc3.
flymake-jslint.el flymake-jslint.el: lintnode-start: use lintnode-port with --port option
fulljslint.js fulljslint.js: update to upstream version 2010-09-16.
jslint.curl add jslint_port variable and set to 3003.


lintnode - a JSLint server for more expedient linting

I was setting up flymake-mode with JSLint, and thinking it was pretty great, but that rhino start-up cost is pretty big for a flymake application. If we just kept JSLint running, wouldn't that be a lot faster?

Then I caught a talk on the node.js server, and saw a way.

In my environment, this cuts jslint invocation time in half.

This project also depends on the Express framework, with the connect-form and haml packages. I recommend installation with npm to manage these dependencies.

The jslint.curl script depends on curl, but you can easily reproduce it with any other http client.


$ node lintnode/app.js --port 3003 &
Express started at http://localhost:3003/ in development mode

$ lintnode/jslint.curl myfilthycode.js

The exit code of jslint.curl is currently not nearly as relevant as the output on standard out. The output should be fully compatible with JSLint's Rhino version.

Emacs Usage

See the included flymake-jslint.el.


jslint_port may be passed on the node command line with the --port parameter. It defaults to 3003.

jstlint_options is currently only configurable by editing app.js. For documentation on JSLint's options, see JSLint options.


This project is hosted at github, which has a wiki and an issue tracker:


This software is distributed under the same license as JSLint, which looks like the MIT License with one additional clause:

The Software shall be used for Good, not Evil.
Something went wrong with that request. Please try again.