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:
Dominik
2022-06-08 14:10:25 +02:00
committed by GitHub
parent 39f5e4c31e
commit 8c6751f0c6
394 changed files with 1328 additions and 1042 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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'