Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 49ce4ef

Browse files
committed
eslint --fix src/
Signed-off-by: Aaron Raimist <[email protected]>
1 parent 952bdba commit 49ce4ef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+199
-232
lines changed

.eslintignore.errorfiles

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@ src/component-index.js
77
src/components/structures/BottomLeftMenu.js
88
src/components/structures/CompatibilityPage.js
99
src/components/structures/CreateRoom.js
10-
src/components/structures/HomePage.js
11-
src/components/structures/LeftPanel.js
1210
src/components/structures/LoggedInView.js
1311
src/components/structures/login/ForgotPassword.js
14-
src/components/structures/LoginBox.js
1512
src/components/structures/MessagePanel.js
1613
src/components/structures/NotificationPanel.js
1714
src/components/structures/RoomDirectory.js
@@ -22,22 +19,17 @@ src/components/structures/SearchBox.js
2219
src/components/structures/TimelinePanel.js
2320
src/components/structures/UploadBar.js
2421
src/components/structures/UserSettings.js
25-
src/components/structures/ViewSource.js
2622
src/components/views/avatars/BaseAvatar.js
2723
src/components/views/avatars/MemberAvatar.js
2824
src/components/views/create_room/RoomAlias.js
29-
src/components/views/dialogs/ChangelogDialog.js
3025
src/components/views/dialogs/DeactivateAccountDialog.js
3126
src/components/views/dialogs/SetPasswordDialog.js
3227
src/components/views/dialogs/UnknownDeviceDialog.js
3328
src/components/views/directory/NetworkDropdown.js
3429
src/components/views/elements/AddressSelector.js
35-
src/components/views/elements/DeviceVerifyButtons.js
3630
src/components/views/elements/DirectorySearchBox.js
3731
src/components/views/elements/ImageView.js
38-
src/components/views/elements/InlineSpinner.js
3932
src/components/views/elements/MemberEventListSummary.js
40-
src/components/views/elements/Spinner.js
4133
src/components/views/elements/TintableSvg.js
4234
src/components/views/elements/UserSelector.js
4335
src/components/views/globals/MatrixToolbar.js
@@ -90,7 +82,6 @@ src/MatrixClientPeg.js
9082
src/Modal.js
9183
src/notifications/ContentRules.js
9284
src/notifications/PushRuleVectorState.js
93-
src/notifications/StandardActions.js
9485
src/notifications/VectorPushRulesDefinitions.js
9586
src/Notifier.js
9687
src/PlatformPeg.js
@@ -111,7 +102,6 @@ src/utils/MultiInviter.js
111102
src/utils/Receipt.js
112103
src/VectorConferenceHandler.js
113104
src/Velociraptor.js
114-
src/VelocityBounce.js
115105
src/WhoIsTyping.js
116106
src/wrappers/withMatrixClient.js
117107
test/components/structures/login/Registration-test.js

src/ComposerHistoryManager.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import _clamp from 'lodash/clamp';
2222
type MessageFormat = 'rich' | 'markdown';
2323

2424
class HistoryItem {
25-
2625
// We store history items in their native format to ensure history is accurate
2726
// and then convert them if our RTE has subsequently changed format.
2827
value: Value;

src/Entities.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ class MemberEntity extends Entity {
7878
}
7979

8080
class UserEntity extends Entity {
81-
8281
constructor(model, showInviteButton, inviteFn) {
8382
super(model);
8483
this.showInviteButton = Boolean(showInviteButton);

src/HtmlUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function containsEmoji(str) {
6464
* because we want to include emoji shortnames in title text
6565
*/
6666
function unicodeToImage(str) {
67-
let replaceWith, unicode, alt, short, fname;
67+
let replaceWith; let unicode; let alt; let short; let fname;
6868
const mappedUnicode = emojione.mapUnicodeToShort();
6969

7070
str = str.replace(emojione.regUnicode, function(unicodeChar) {

src/PasswordReset.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import { _t } from './languageHandler';
2525
* API on the homeserver in question with the new password.
2626
*/
2727
class PasswordReset {
28-
2928
/**
3029
* Configure the endpoints for password resetting.
3130
* @param {string} homeserverUrl The URL to the HS which has the account to reset.

src/Presence.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const UNAVAILABLE_TIME_MS = 3 * 60 * 1000; // 3 mins
2323
const PRESENCE_STATES = ["online", "offline", "unavailable"];
2424

2525
class Presence {
26-
2726
/**
2827
* Start listening the user activity to evaluate his presence state.
2928
* Any state change will be sent to the Home Server.

src/Rooms.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export function getDisplayAliasForRoom(room) {
3232
* return the other one. Otherwise, return null.
3333
*/
3434
export function getOnlyOtherMember(room, myUserId) {
35-
3635
if (room.currentState.getJoinedMemberCount() === 2) {
3736
return room.getJoinedMembers().filter(function(m) {
3837
return m.userId !== myUserId;
@@ -103,7 +102,7 @@ export function guessAndSetDMRoom(room, isDirect) {
103102
let newTarget;
104103
if (isDirect) {
105104
const guessedUserId = guessDMRoomTargetId(
106-
room, MatrixClientPeg.get().getUserId()
105+
room, MatrixClientPeg.get().getUserId(),
107106
);
108107
newTarget = guessedUserId;
109108
} else {

src/ScalarAuthClient.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const SdkConfig = require('./SdkConfig');
2222
const MatrixClientPeg = require('./MatrixClientPeg');
2323

2424
class ScalarAuthClient {
25-
2625
constructor() {
2726
this.scalarToken = null;
2827
}

src/SdkConfig.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const DEFAULTS = {
2424
};
2525

2626
class SdkConfig {
27-
2827
static get() {
2928
return global.mxReactSdkConfig || {};
3029
}

src/UserActivity.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ const CURRENTLY_ACTIVE_THRESHOLD_MS = 2000;
2525
* with the app (but at a much lower frequency than mouse move events)
2626
*/
2727
class UserActivity {
28-
2928
/**
3029
* Start listening to user activity
3130
*/

0 commit comments

Comments
 (0)