eslint: change no-plusplus from warning to 2 and fix violations.

This commit is contained in:
kevv87
2016-11-30 18:05:04 +00:00
committed by Tim Abbott
parent c90da24541
commit e6369fc29b
23 changed files with 41 additions and 41 deletions

View File

@@ -131,9 +131,9 @@ exports.actions_menu_handle_keyboard = function (key) {
if (index === -1) {
index = 0;
} else if ((key === 'down_arrow' || key === 'vim_down') && index < items.length - 1) {
++index;
index += 1;
} else if ((key === 'up_arrow' || key === 'vim_up') && index > 0) {
--index;
index -= 1;
}
items.eq(index).focus();
};