Skip to content

Commit a74d393

Browse files
committed
fix: lint
1 parent 61d4dab commit a74d393

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

packages/collaboration-manager/src/Operation.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ const createOperation = (
1010
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1111
value: string | [ BlockNodeSerialized ] | Record<any, any>,
1212
// eslint-disable-next-line @typescript-eslint/no-explicit-any
13-
prevValue?: Record<any, any>,
14-
endIndex?: number
13+
prevValue?: Record<any, any>
1514
): Operation => {
1615
const index = new IndexBuilder()
1716
.addBlockIndex(0);
@@ -194,7 +193,7 @@ describe('Operation', () => {
194193

195194
it('should transform a received operation if it is at the same position as a local one', () => {
196195
const receivedOp = createOperation(OperationType.Modify, 3, 'abc');
197-
const localOp = createOperation(OperationType.Delete, 0, 'def', undefined, 3);
196+
const localOp = createOperation(OperationType.Delete, 0, 'def');
198197
const transformedOp = receivedOp.transform(localOp);
199198

200199
expect(transformedOp.index.textRange).toEqual([0, 0]);

packages/collaboration-manager/src/OperationsTransformer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ export class OperationsTransformer {
2020
if (operation.index.documentId !== againstOp.index.documentId) {
2121
return Operation.from(operation);
2222
}
23-
23+
2424
/**
2525
* Throw unsupported operation type error if operation type is not supported
2626
*/
2727
if (!Object.values(OperationType).includes(againstOp.type) || !Object.values(OperationType).includes(operation.type)) {
28-
throw new Error('Unsupported operation type')
28+
throw new Error('Unsupported operation type');
2929
}
3030

3131
return this.#applyTransformation<T>(operation, againstOp);

packages/collaboration-manager/src/UndoRedoManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class UndoRedoManager {
7474
*
7575
* @param operation - operation to transform against
7676
* @param stack - stack to transform
77-
* @returns - new transformed list of operations
77+
* @returns {Operation[]} - new transformed list of operations
7878
*/
7979
private transformStack(operation: Operation, stack: Operation[]): Operation[] {
8080
return stack.map((op: Operation) => op.transform(operation));

0 commit comments

Comments
 (0)