diff --git a/.eslintignore.errorfiles b/.eslintignore.errorfiles
index 42dc3b4810..4376439012 100644
--- a/.eslintignore.errorfiles
+++ b/.eslintignore.errorfiles
@@ -3,9 +3,7 @@
src/component-index.js
src/components/structures/auth/ForgotPassword.js
src/components/structures/BottomLeftMenu.js
-src/components/structures/CompatibilityPage.js
src/components/structures/CreateRoom.js
-src/components/structures/LoggedInView.js
src/components/structures/MessagePanel.js
src/components/structures/NotificationPanel.js
src/components/structures/RoomDirectory.js
diff --git a/src/components/structures/CompatibilityPage.js b/src/components/structures/CompatibilityPage.js
index 3c5005c053..28521cb1b7 100644
--- a/src/components/structures/CompatibilityPage.js
+++ b/src/components/structures/CompatibilityPage.js
@@ -41,10 +41,15 @@ module.exports = React.createClass({
{ _t("Sorry, your browser is not able to run Riot.", {}, { 'b': (sub) => {sub} }) }
- { _t("Riot uses many advanced browser features, some of which are not available or experimental in your current browser.") }
+ { _t(
+ "Riot uses many advanced browser features, some of which are not available " +
+ "or experimental in your current browser.",
+ ) }
- { _t('Please install Chrome or Firefox for the best experience.',
+ { _t(
+ 'Please install Chrome or Firefox ' +
+ 'for the best experience.',
{},
{
'chromeLink': (sub) => {sub} ,
@@ -60,7 +65,12 @@ module.exports = React.createClass({
)}
- { _t("With your current browser, the look and feel of the application may be completely incorrect, and some or all features may not function. If you want to try it anyway you can continue, but you are on your own in terms of any issues you may encounter!") }
+ { _t(
+ "With your current browser, the look and feel of the application may be " +
+ "completely incorrect, and some or all features may not function. " +
+ "If you want to try it anyway you can continue, but you are on your own in terms " +
+ "of any issues you may encounter!",
+ ) }
{ _t("I understand the risks and wish to continue") }
diff --git a/src/components/structures/LoggedInView.js b/src/components/structures/LoggedInView.js
index 0433ce25b3..409988842f 100644
--- a/src/components/structures/LoggedInView.js
+++ b/src/components/structures/LoggedInView.js
@@ -35,7 +35,7 @@ import RoomListStore from "../../stores/RoomListStore";
import TagOrderActions from '../../actions/TagOrderActions';
import RoomListActions from '../../actions/RoomListActions';
import ResizeHandle from '../views/elements/ResizeHandle';
-import {Resizer, CollapseDistributor} from '../../resizer'
+import {Resizer, CollapseDistributor} from '../../resizer';
// We need to fetch each pinned message individually (if we don't already have it)
// so each pinned message may trigger a request. Limit the number per room for sanity.
// NB. this is just for server notices rather than pinned messages in general.
@@ -160,7 +160,7 @@ const LoggedInView = React.createClass({
const classNames = {
handle: "mx_ResizeHandle",
vertical: "mx_ResizeHandle_vertical",
- reverse: "mx_ResizeHandle_reverse"
+ reverse: "mx_ResizeHandle_reverse",
};
const collapseConfig = {
toggleSize: 260 - 50,
@@ -201,7 +201,11 @@ const LoggedInView = React.createClass({
},
onSync: function(syncState, oldSyncState, data) {
- const oldErrCode = this.state.syncErrorData && this.state.syncErrorData.error && this.state.syncErrorData.error.errcode;
+ const oldErrCode = (
+ this.state.syncErrorData &&
+ this.state.syncErrorData.error &&
+ this.state.syncErrorData.error.errcode
+ );
const newErrCode = data && data.error && data.error.errcode;
if (syncState === oldSyncState && oldErrCode === newErrCode) return;
@@ -310,7 +314,10 @@ const LoggedInView = React.createClass({
}
},
- /** dispatch a page-up/page-down/etc to the appropriate component */
+ /**
+ * dispatch a page-up/page-down/etc to the appropriate component
+ * @param {Object} ev The key event
+ */
_onScrollKeyPressed: function(ev) {
if (this.refs.roomView) {
this.refs.roomView.handleScrollKey(ev);
@@ -424,11 +431,11 @@ const LoggedInView = React.createClass({
const PasswordNagBar = sdk.getComponent('globals.PasswordNagBar');
const ServerLimitBar = sdk.getComponent('globals.ServerLimitBar');
- let page_element;
+ let pageElement;
switch (this.props.page_type) {
case PageTypes.RoomView:
- page_element = ;
+ pageElement = ;
break;
case PageTypes.RoomDirectory:
- page_element = ;
@@ -471,7 +478,7 @@ const LoggedInView = React.createClass({
const teamServerUrl = this.props.config.teamServerConfig ?
this.props.config.teamServerConfig.teamServerURL : null;
- page_element = ;
break;
case PageTypes.GroupView:
- page_element = ;
} else if (this.state.userHasGeneratedPassword) {
topBar = ;
- } else if (!isGuest && Notifier.supportsDesktopNotifications() && !Notifier.isEnabled() && !Notifier.isToolbarHidden()) {
+ } else if (
+ !isGuest && Notifier.supportsDesktopNotifications() &&
+ !Notifier.isEnabled() && !Notifier.isToolbarHidden()
+ ) {
topBar = ;
}
@@ -546,8 +556,8 @@ const LoggedInView = React.createClass({
collapsed={this.props.collapseLhs || this.state.collapseLhs || false}
disabled={this.props.leftDisabled}
/>
-
- { page_element }
+
+ { pageElement }