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,13 +1,12 @@
|
||||
import { find, test } from 'linkifyjs'
|
||||
import { MarkType } from 'prosemirror-model'
|
||||
import { Plugin, PluginKey } from 'prosemirror-state'
|
||||
|
||||
import {
|
||||
combineTransactionSteps,
|
||||
findChildrenInRange,
|
||||
getChangedRanges,
|
||||
getMarksBetween,
|
||||
} from '@tiptap/core'
|
||||
import { find, test } from 'linkifyjs'
|
||||
import { MarkType } from 'prosemirror-model'
|
||||
import { Plugin, PluginKey } from 'prosemirror-state'
|
||||
|
||||
type AutolinkOptions = {
|
||||
type: MarkType,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { getAttributes } from '@tiptap/core'
|
||||
import { Plugin, PluginKey } from 'prosemirror-state'
|
||||
import { MarkType } from 'prosemirror-model'
|
||||
import { Plugin, PluginKey } from 'prosemirror-state'
|
||||
|
||||
type ClickHandlerOptions = {
|
||||
type: MarkType,
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import { Editor } from '@tiptap/core'
|
||||
import { find } from 'linkifyjs'
|
||||
import { MarkType } from 'prosemirror-model'
|
||||
import { Plugin, PluginKey } from 'prosemirror-state'
|
||||
|
||||
import { Editor } from '@tiptap/core'
|
||||
|
||||
type PasteHandlerOptions = {
|
||||
editor: Editor,
|
||||
type: MarkType,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { find, registerCustomProtocol } from 'linkifyjs'
|
||||
|
||||
import { Mark, markPasteRule, mergeAttributes } from '@tiptap/core'
|
||||
import { find, registerCustomProtocol } from 'linkifyjs'
|
||||
|
||||
import { autolink } from './helpers/autolink'
|
||||
import { clickHandler } from './helpers/clickHandler'
|
||||
|
||||
Reference in New Issue
Block a user