add precommit hook for linting and automatic eslint fixes + update eslint packages (#2862)
* chore: add precommit hook for eslint fixes, fix linting issues * chore: add eslint import sort plugin
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { Extension } from '@tiptap/core'
|
||||
import { UndoManager } from 'yjs'
|
||||
import {
|
||||
redo,
|
||||
undo,
|
||||
@@ -7,6 +6,7 @@ import {
|
||||
yUndoPlugin,
|
||||
yUndoPluginKey,
|
||||
} from 'y-prosemirror'
|
||||
import { UndoManager } from 'yjs'
|
||||
|
||||
declare module '@tiptap/core' {
|
||||
interface Commands<ReturnType> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ySyncPluginKey } from 'y-prosemirror'
|
||||
import { Transaction } from 'prosemirror-state'
|
||||
import { ySyncPluginKey } from 'y-prosemirror'
|
||||
|
||||
export function isChangeOrigin(transaction: Transaction): boolean {
|
||||
return !!transaction.getMeta(ySyncPluginKey)
|
||||
|
||||
Reference in New Issue
Block a user