diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-09-23 12:29:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-23 12:29:54 -0400 |
commit | 93f2b6a83302ceef5c98be4fb696840608ad3bc3 (patch) | |
tree | 89e86c5983058189f032c817573bfd945491b4e7 /webapp/components/post_view | |
parent | 214f9c13a261064733c23d762fa521444fbd7a9c (diff) | |
download | chat-93f2b6a83302ceef5c98be4fb696840608ad3bc3.tar.gz chat-93f2b6a83302ceef5c98be4fb696840608ad3bc3.tar.bz2 chat-93f2b6a83302ceef5c98be4fb696840608ad3bc3.zip |
Updating ESLint (#4085)
Diffstat (limited to 'webapp/components/post_view')
5 files changed, 10 insertions, 13 deletions
diff --git a/webapp/components/post_view/components/post_attachment.jsx b/webapp/components/post_view/components/post_attachment.jsx index 4442b735a..57335b94a 100644 --- a/webapp/components/post_view/components/post_attachment.jsx +++ b/webapp/components/post_view/components/post_attachment.jsx @@ -87,7 +87,7 @@ class PostAttachment extends React.Component { return ''; } - let fieldTables = []; + const fieldTables = []; let headerCols = []; let bodyCols = []; @@ -104,7 +104,7 @@ class PostAttachment extends React.Component { > <thead> <tr> - {headerCols} + {headerCols} </tr> </thead> <tbody> @@ -134,8 +134,7 @@ class PostAttachment extends React.Component { className='attachment-field' key={'attachment__field-' + i + '__' + nrTables} dangerouslySetInnerHTML={{__html: TextFormatting.formatText(field.value || '')}} - > - </td> + /> ); rowPos += 1; lastWasLong = !(field.short === true); @@ -175,8 +174,7 @@ class PostAttachment extends React.Component { <div className='attachment__thumb-pretext' dangerouslySetInnerHTML={{__html: TextFormatting.formatText(data.pretext)}} - > - </div> + /> ); } @@ -250,8 +248,7 @@ class PostAttachment extends React.Component { <div className='attachment__text' dangerouslySetInnerHTML={{__html: this.state.text}} - > - </div> + /> ); } @@ -307,7 +304,7 @@ class PostAttachment extends React.Component { {fields} </div> {thumb} - <div style={{clear: 'both'}}></div> + <div style={{clear: 'both'}}/> </div> </div> </div> diff --git a/webapp/components/post_view/components/post_attachment_list.jsx b/webapp/components/post_view/components/post_attachment_list.jsx index 7da9efbee..7e9d7980d 100644 --- a/webapp/components/post_view/components/post_attachment_list.jsx +++ b/webapp/components/post_view/components/post_attachment_list.jsx @@ -7,7 +7,7 @@ import React from 'react'; export default class PostAttachmentList extends React.Component { render() { - let content = []; + const content = []; this.props.attachments.forEach((attachment, i) => { content.push( <PostAttachment diff --git a/webapp/components/post_view/components/post_body.jsx b/webapp/components/post_view/components/post_body.jsx index 3295f5bac..5c02e9c40 100644 --- a/webapp/components/post_view/components/post_body.jsx +++ b/webapp/components/post_view/components/post_body.jsx @@ -169,7 +169,7 @@ export default class PostBody extends React.Component { ); } - let messageWrapper = ( + const messageWrapper = ( <div key={`${post.id}_message`} id={`${post.id}_message`} diff --git a/webapp/components/post_view/components/post_body_additional_content.jsx b/webapp/components/post_view/components/post_body_additional_content.jsx index a5d8afa61..5cdbef050 100644 --- a/webapp/components/post_view/components/post_body_additional_content.jsx +++ b/webapp/components/post_view/components/post_body_additional_content.jsx @@ -174,7 +174,7 @@ export default class PostBodyAdditionalContent extends React.Component { } if (this.isLinkToggleable()) { - let messageWithToggle = []; + const messageWithToggle = []; // if message has only one line and starts with a link place toggle in this only line // else - place it in new line between message and embed diff --git a/webapp/components/post_view/post_view_cache.jsx b/webapp/components/post_view/post_view_cache.jsx index 13ce79d7f..8ed225e4b 100644 --- a/webapp/components/post_view/post_view_cache.jsx +++ b/webapp/components/post_view/post_view_cache.jsx @@ -67,7 +67,7 @@ export default class PostViewCache extends React.Component { const channels = this.state.channels; const currentChannelId = this.state.currentChannelId; - let postViews = []; + const postViews = []; for (let i = 0; i < channels.length; i++) { postViews.push( <PostViewController |