Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
JSHINT Node.js app and rules
var express = require('express')
var app = express.createServer();
var JSHINT = require('jshint').JSHINT;
app.get('/', function(req, res){
res.send('hello world');
});'/', function(req, res){
results = JSHINT(req.body.doc, {
eqeqeq: true,
forin: true,
immed: true,
newcap: true,
noempty: true,
undef: true,
strict: true,
white: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment