Skip to content

Commit 66cc7ba

Browse files
committed
chore: lint fixes
1 parent 4da470d commit 66cc7ba

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/super-editor/src/core/Editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { EditorState } from 'prosemirror-state';
22
import { EditorView } from 'prosemirror-view';
3-
import { DOMParser, DOMSerializer } from 'prosemirror-model';
3+
import { DOMSerializer } from 'prosemirror-model';
44
import { yXmlFragmentToProseMirrorRootNode } from 'y-prosemirror';
55
import { helpers } from '@core/index.js';
66
import { EventEmitter } from './EventEmitter.js';

packages/super-editor/src/extensions/list-item/ListItemNodeView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ function calculateMarkerWidth(dom, numberingDOM, editor, { withPadding = true }
373373
const textWidth = context.measureText(markerText).width;
374374
const resultWidth = withPadding ? Math.ceil(textWidth + MARKER_PADDING) : Math.ceil(textWidth);
375375
return resultWidth;
376-
} catch (error) {
376+
} catch {
377377
return 0;
378378
}
379379
}

0 commit comments

Comments
 (0)