1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Auto-fix lint errors

This commit is contained in:
J. Ryan Stinnett
2021-06-29 13:11:58 +01:00
parent 4c5720a573
commit ae0a8b8da4
625 changed files with 3170 additions and 3232 deletions

View File

@@ -16,7 +16,7 @@ limitations under the License.
import DocumentOffset from "./offset";
import EditorModel from "./model";
import {Part} from "./parts";
import { Part } from "./parts";
export interface IPosition {
index: number;
@@ -62,8 +62,8 @@ export default class DocumentPosition implements IPosition {
return this;
}
let {index, offset} = this;
const {parts} = model;
let { index, offset } = this;
const { parts } = model;
while (index < parts.length) {
const part = parts[index];
while (offset < part.text.length) {
@@ -87,7 +87,7 @@ export default class DocumentPosition implements IPosition {
return this;
}
let {index, offset} = this;
let { index, offset } = this;
const parts = model.parts;
while (index >= 0) {
const part = parts[index];