Add jshint config for tasks and remove lint
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user