Upgrade ESLint to v2

This commit also tweak the code style following backward-incompatible v2 rules.
This commit is contained in:
Maxime Quandalle 2016-02-13 03:12:01 +01:00
parent b8aefedcc3
commit 90601eacae
14 changed files with 161 additions and 164 deletions

View file

@ -208,11 +208,12 @@ BlazeComponent.extendComponent({
label.color.indexOf(term) > -1) {
return label;
}
return null;
}));
},
template(label) {
return Blaze.toHTMLWithData(Template.autocompleteLabelLine, {
hasNoName: !Boolean(label.name),
hasNoName: !label.name,
colorName: label.color,
labelName: label.name || label.color,
});
@ -233,6 +234,7 @@ BlazeComponent.extendComponent({
evt.stopPropagation();
return commands.KEY_ENTER;
}
return null;
},
});
},