Upgrading ESLint and adding some more rules. Refactoring to meet these new rules

Этот коммит содержится в:
Christopher Speller
2015-11-19 18:10:08 -05:00
родитель c22e8129b0
Коммит 5c35c2631e
9 изменённых файлов: 42 добавлений и 21 удалений

Просмотреть файл

@@ -74,11 +74,12 @@ export default class MsgTyping extends React.Component {
case 1:
text = users[0] + ' is typing...';
break;
default:
default: {
const last = users.pop();
text = users.join(', ') + ' and ' + last + ' are typing...';
break;
}
}
this.setState({text});
}