Enable no magic numbers as warning. Ignore stateless components.

Этот коммит содержится в:
Christopher Speller
2015-11-23 10:07:58 -05:00
родитель 4b3a3941e0
Коммит eebec71360
2 изменённых файлов: 5 добавлений и 5 удалений

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

@@ -71,7 +71,7 @@ export function createDMIntroMessage(channel) {
);
}
export function createOffTopicIntroMessage(channel, showInviteModal) { //eslint-disable-line react/no-multi-comp
export function createOffTopicIntroMessage(channel, showInviteModal) {
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) { //eslint-
);
}
export function createDefaultIntroMessage(channel) { //eslint-disable-line react/no-multi-comp
export function createDefaultIntroMessage(channel) {
const team = TeamStore.getCurrent();
let inviteModalLink;
if (team.type === Constants.INVITE_TEAM) {
@@ -154,7 +154,7 @@ export function createDefaultIntroMessage(channel) { //eslint-disable-line react
);
}
export function createStandardIntroMessage(channel, showInviteModal) { //eslint-disable-line react/no-multi-comp
export function createStandardIntroMessage(channel, showInviteModal) {
var uiName = channel.display_name;
var creatorName = '';