1
0
Fork 0

ignore errors in jshintrc

This commit is contained in:
Frank Celler 2014-12-29 21:18:14 +01:00
parent e19a7f3728
commit 06660a6a68
1 changed files with 8 additions and 1 deletions

View File

@ -31,7 +31,14 @@ var console = require("console");
var _ = require('underscore')
var JSHINT = require("jshint").JSHINT;
var jshintrc = JSON.parse(fs.read('./js/.jshintrc'));
var jshintrc = {};
try {
jshintrc = JSON.parse(fs.read('./js/.jshintrc'));
}
catch (err) {
// ignore any errors
}
// -----------------------------------------------------------------------------
// --SECTION-- public functions