Add some ESLint rules and fix some related issues

This commit is contained in:
Maxime Quandalle 2015-10-14 23:50:12 +02:00
parent 43de3b8a01
commit 944a1065d3
5 changed files with 46 additions and 42 deletions

View file

@ -62,14 +62,12 @@ BlazeComponent.extendComponent({
try {
trelloCard = JSON.parse(jsonData);
} catch (e) {
console.log(e);
this.setError('error-json-malformed');
return;
}
Meteor.call('importTrelloCard', trelloCard, this.currentData()._id, sortIndex,
(error, response) => {
if (error) {
console.log(error);
this.setError(error.error);
} else {
Filter.addException(response);
@ -77,8 +75,8 @@ BlazeComponent.extendComponent({
}
}
);
}
},];
},
}];
},
onCreated() {