diff --git a/.eslintignore.errorfiles b/.eslintignore.errorfiles index 2b57d4e9e2..30cc55377c 100644 --- a/.eslintignore.errorfiles +++ b/.eslintignore.errorfiles @@ -48,7 +48,6 @@ src/components/views/rooms/LinkPreviewWidget.js src/components/views/rooms/MemberDeviceInfo.js src/components/views/rooms/MemberInfo.js src/components/views/rooms/MemberList.js -src/components/views/rooms/MemberTile.js src/components/views/rooms/MessageComposer.js src/components/views/rooms/PinnedEventTile.js src/components/views/rooms/RoomList.js diff --git a/src/components/views/rooms/MemberTile.js b/src/components/views/rooms/MemberTile.js index ba951792d0..4189e406b5 100644 --- a/src/components/views/rooms/MemberTile.js +++ b/src/components/views/rooms/MemberTile.js @@ -21,10 +21,8 @@ import SettingsStore from "../../../settings/SettingsStore"; const React = require('react'); import PropTypes from 'prop-types'; -const MatrixClientPeg = require('../../../MatrixClientPeg'); const sdk = require('../../../index'); const dis = require('../../../dispatcher'); -const Modal = require("../../../Modal"); import { _t } from '../../../languageHandler'; module.exports = React.createClass({ @@ -74,17 +72,18 @@ module.exports = React.createClass({ }, getPowerLabel: function() { - return _t("%(userName)s (power %(powerLevelNumber)s)", {userName: this.props.member.userId, powerLevelNumber: this.props.member.powerLevel}); + return _t("%(userName)s (power %(powerLevelNumber)s)", { + userName: this.props.member.userId, + powerLevelNumber: this.props.member.powerLevel, + }); }, render: function() { const MemberAvatar = sdk.getComponent('avatars.MemberAvatar'); - const BaseAvatar = sdk.getComponent('avatars.BaseAvatar'); const EntityTile = sdk.getComponent('rooms.EntityTile'); const member = this.props.member; const name = this._getDisplayName(); - const active = -1; const presenceState = member.user ? member.user.presence : null; let statusMessage = null;