Skip to content

deactivated/lintnode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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

Usage

$ node lintnode/app.js --port 8000 &

$ 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.

Configuration

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

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

Support

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

http://github.com/keturn/lintnode

License

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.

About

a JSLint server for more expedient linting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 99.2%
  • Emacs Lisp 0.8%