Lint JavaScript

This commit is contained in:
Rowan Manning
2013-09-16 13:28:51 +01:00
parent 3836e9079b
commit b7cb3ab48a
6 changed files with 78 additions and 4 deletions

2
app.js
View File

@@ -1,6 +1,5 @@
'use strict';
var async = require('async');
var createClient = require('pa11y-webservice-client-node');
var EventEmitter = require('events').EventEmitter;
var express = require('express');
@@ -57,6 +56,7 @@ function initApp (config, callback) {
// Error handling
app.express.use(function (err, req, res, next) {
/* jshint unused: false */
app.emit('route-error', err);
res.send('Error');
});