Add jshint config for tasks and remove lint

This commit is contained in:
Tim Schaub
2014-07-31 12:00:37 -06:00
parent 711c4bbc8c
commit 33b68123ac
5 changed files with 53 additions and 34 deletions

View File

@@ -26,8 +26,8 @@ function getConfig(configPath, callback) {
var obj;
try {
obj = JSON.parse(String(data));
} catch (err) {
callback(new Error('Trouble parsing file as JSON: ' + options.config));
} catch (err2) {
callback(new Error('Trouble parsing file as JSON: ' + configPath));
return;
}
var patterns = obj.exports;
@@ -224,7 +224,7 @@ if (require.main === module) {
fse.outputFile.bind(fse, options.output)
], function(err) {
if (err) {
console.error(err.message);
process.stderr.write(err.message + '\n');
process.exit(1);
} else {
process.exit(0);