Skip to content

Commit df3d4d4

Browse files
author
Ives van Hoorne
committed
Fix lint
1 parent b3a72a2 commit df3d4d4

File tree

8 files changed

+8
-15
lines changed

8 files changed

+8
-15
lines changed

packages/app/src/app/components/CodeEditor/Monaco/index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ class MonacoEditor extends React.Component<Props, State> implements Editor {
215215
const { isLive, sendTransforms } = this.props;
216216

217217
if (isLive && sendTransforms && !this.receivingCode) {
218-
console.log(changes);
219218
this.addChangesOperation(changes);
220219
}
221220

@@ -430,7 +429,6 @@ class MonacoEditor extends React.Component<Props, State> implements Editor {
430429
};
431430

432431
changes = { moduleShortid: null, code: '', changes: [] };
433-
changeTimeout: ?TimeoutID;
434432
/**
435433
* Throttle the changes and handle them after a desired amount of time as one array of changes
436434
*/
@@ -454,10 +452,6 @@ class MonacoEditor extends React.Component<Props, State> implements Editor {
454452
this.changes.changes.push(change);
455453
});
456454

457-
if (this.changeTimeout) {
458-
clearTimeout(this.changeTimeout);
459-
}
460-
461455
this.sendChangeOperations();
462456
};
463457

packages/app/src/app/pages/Live/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ class LivePage extends React.Component {
129129
render() {
130130
const { match, store } = this.props;
131131

132-
store.user;
132+
// eslint-disable-next-line
133+
store.user; // Force observer call
133134

134135
const content = this.getContent();
135136

packages/app/src/app/pages/Sandbox/Editor/Content/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import * as React from 'react';
33
import { ThemeProvider } from 'styled-components';
44
import { Prompt } from 'react-router-dom';
5-
import { reaction, autorun } from 'mobx';
5+
import { reaction } from 'mobx';
66
import { TextOperation } from 'ot';
77
import { inject, observer } from 'mobx-react';
88
import getTemplateDefinition from 'common/templates';

packages/app/src/app/pages/Sandbox/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import QuickActions from 'app/pages/Sandbox/QuickActions';
77

88
import Navigation from 'app/pages/common/Navigation';
99
import Title from 'app/components/Title';
10-
import SubTitle from 'app/components/SubTitle';
1110
import Centered from 'common/components/flex/Centered';
1211
import Fullscreen from 'common/components/flex/Fullscreen';
1312
import Padding from 'common/components/spacing/Padding';
@@ -44,7 +43,7 @@ class SandboxPage extends React.Component {
4443
}
4544

4645
getContent() {
47-
const { match, store } = this.props;
46+
const { store } = this.props;
4847

4948
if (store.editor.isLoading) {
5049
return (
@@ -79,7 +78,7 @@ class SandboxPage extends React.Component {
7978
404 Not Found
8079
</div>
8180
<Title style={{ fontSize: '1.25rem' }}>
82-
We could not find the sandbox you're looking for
81+
We could not find the sandbox you{"'"}re looking for
8382
</Title>
8483
<br />
8584
<Link to="/s">Create Sandbox</Link>

packages/app/src/app/store/modules/editor/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
currentPackageJSONCode,
1111
parsedConfigurations,
1212
} from './getters';
13-
import { isModuleSynced, getType } from './computed';
13+
import { isModuleSynced } from './computed';
1414
import { loadSandbox } from '../../sequences';
1515

1616
export default Module({

packages/app/src/app/store/modules/live/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function sendCurrentState({ state, ot, live }) {
9999
});
100100
}
101101

102-
export function consumeState({ props, ot }) {
102+
export function consumeState({ props }) {
103103
const {
104104
sandbox,
105105
changedModuleShortids,

packages/app/src/app/store/modules/live/computed.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { getParent } from 'mobx-state-tree';
2-
31
export function isEditor(userId) {
42
return (
53
this.isLive &&

packages/app/src/app/store/providers/Live.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export default Provider({
6060
},
6161
send(event: string, payload: Object) {
6262
const _messageId = identifier + messageIndex++;
63+
// eslint-disable-next-line
6364
payload._messageId = _messageId;
6465
sentMessages.set(_messageId, payload);
6566

0 commit comments

Comments
 (0)