Skip to content

Commit b6486d3

Browse files
committed
Fix lint
1 parent 94db4b3 commit b6486d3

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

packages/dom-adapters/src/BlockToolAdapter/index.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,9 +483,8 @@ export class BlockToolAdapter implements BlockToolAdapterInterface {
483483
*
484484
* @param event - model update event
485485
* @param input - input element
486-
* @param key - data key input is attached to
487486
*/
488-
#handleModelUpdateForNativeInput(event: ModelEvents, input: HTMLInputElement | HTMLTextAreaElement, key: DataKey): void {
487+
#handleModelUpdateForNativeInput(event: ModelEvents, input: HTMLInputElement | HTMLTextAreaElement): void {
489488
const { textRange } = event.detail.index;
490489

491490
const currentElement = input;
@@ -575,8 +574,6 @@ export class BlockToolAdapter implements BlockToolAdapterInterface {
575574
* Handles model update events and updates DOM
576575
*
577576
* @param event - model update event
578-
* @param input - attached input element
579-
* @param key - data key input is attached to
580577
*/
581578
#handleModelUpdate(event: ModelEvents): void {
582579
if (event instanceof BlockAddedEvent || event instanceof BlockRemovedEvent) {
@@ -619,7 +616,7 @@ export class BlockToolAdapter implements BlockToolAdapterInterface {
619616
const isInputNative = isNativeInput(input);
620617

621618
if (isInputNative === true) {
622-
this.#handleModelUpdateForNativeInput(event, input as HTMLInputElement | HTMLTextAreaElement, dataKey!);
619+
this.#handleModelUpdateForNativeInput(event, input as HTMLInputElement | HTMLTextAreaElement);
623620
} else {
624621
this.#handleModelUpdateForContentEditableElement(event, input, dataKey!);
625622
}

packages/dom-adapters/src/CaretAdapter/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export class CaretAdapter extends EventTarget {
9999

100100
/**
101101
* Removes input from the caret adapter
102+
*
102103
* @param index - index of the input to remove
103104
*/
104105
public detachInput(index: Index): void {

packages/model/src/entities/BlockNode/__mocks__/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { EventBus } from '../../../EventBus/EventBus.js';
2-
import { create } from "../../../utils/index";
3-
import type { DataKey } from "../types/index";
2+
import { create } from '../../../utils/index.js';
3+
import type { DataKey } from '../types/index';
44

55
export const createDataKey = create<DataKey>();
66

packages/model/src/entities/BlockNode/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DataNodeAddedEvent } from '../../EventBus/events/DataNodeAddedEvent';
1+
import { DataNodeAddedEvent } from '../../EventBus/events/DataNodeAddedEvent.js';
22
import { getContext } from '../../utils/Context.js';
33
import type { EditorDocument } from '../EditorDocument';
44
import type { BlockTuneName, BlockTuneSerialized } from '../BlockTune';

packages/model/src/entities/EditorDocument/EditorDocument.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,8 @@ describe('EditorDocument', () => {
11761176
.addBlockIndex(blockIndex)
11771177
.addDataKey(dataKey)
11781178
.build();
1179-
const value = { value: text, $t: 't' };
1179+
const value = { value: text,
1180+
$t: 't' };
11801181

11811182

11821183
document.insertData(index, value);

0 commit comments

Comments
 (0)