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 удалений

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

@@ -71,7 +71,7 @@ export function createDMIntroMessage(channel) {
);
}
export function createOffTopicIntroMessage(channel, showInviteModal) {
export function createOffTopicIntroMessage(channel, showInviteModal) { //eslint-disable-line react/no-multi-comp
return (
<div className='channel-intro'>
<h4 className='channel-intro__title'>{'Beginning of ' + channel.display_name}</h4>
@@ -101,7 +101,7 @@ export function createOffTopicIntroMessage(channel, showInviteModal) {
);
}
export function createDefaultIntroMessage(channel) {
export function createDefaultIntroMessage(channel) { //eslint-disable-line react/no-multi-comp
const team = TeamStore.getCurrent();
let inviteModalLink;
if (team.type === Constants.INVITE_TEAM) {
@@ -154,7 +154,7 @@ export function createDefaultIntroMessage(channel) {
);
}
export function createStandardIntroMessage(channel, showInviteModal) {
export function createStandardIntroMessage(channel, showInviteModal) { //eslint-disable-line react/no-multi-comp
var uiName = channel.display_name;
var creatorName = '';