Upgrading ESLint and adding some more rules. Refactoring to meet these new rules
Этот коммит содержится в:
@@ -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 = '';
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user