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,7 +1,7 @@
|
||||
import { BubbleMenuPlugin, BubbleMenuPluginProps } from '@tiptap/extension-bubble-menu'
|
||||
import React, {
|
||||
useEffect, useState,
|
||||
} from 'react'
|
||||
import { BubbleMenuPlugin, BubbleMenuPluginProps } from '@tiptap/extension-bubble-menu'
|
||||
|
||||
type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import React from 'react'
|
||||
import { Editor as CoreEditor } from '@tiptap/core'
|
||||
import React from 'react'
|
||||
|
||||
import { EditorContentProps, EditorContentState } from './EditorContent'
|
||||
|
||||
export class Editor extends CoreEditor {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import React, { HTMLProps } from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
|
||||
import { Editor } from './Editor'
|
||||
import { ReactRenderer } from './ReactRenderer'
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { FloatingMenuPlugin, FloatingMenuPluginProps } from '@tiptap/extension-floating-menu'
|
||||
import React, {
|
||||
useEffect, useState,
|
||||
} from 'react'
|
||||
import { FloatingMenuPlugin, FloatingMenuPluginProps } from '@tiptap/extension-floating-menu'
|
||||
|
||||
type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import React from 'react'
|
||||
|
||||
import { useReactNodeView } from './useReactNodeView'
|
||||
|
||||
export interface NodeViewContentProps {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import React from 'react'
|
||||
|
||||
import { useReactNodeView } from './useReactNodeView'
|
||||
|
||||
export interface NodeViewWrapperProps {
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
import React from 'react'
|
||||
import {
|
||||
NodeView,
|
||||
NodeViewProps,
|
||||
NodeViewRenderer,
|
||||
NodeViewRendererProps,
|
||||
NodeViewRendererOptions,
|
||||
NodeViewRendererProps,
|
||||
} from '@tiptap/core'
|
||||
import { Decoration, NodeView as ProseMirrorNodeView } from 'prosemirror-view'
|
||||
import { Node as ProseMirrorNode } from 'prosemirror-model'
|
||||
import { Decoration, NodeView as ProseMirrorNodeView } from 'prosemirror-view'
|
||||
import React from 'react'
|
||||
|
||||
import { Editor } from './Editor'
|
||||
import { ReactRenderer } from './ReactRenderer'
|
||||
import { ReactNodeViewContext, ReactNodeViewContextProps } from './useReactNodeView'
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import React from 'react'
|
||||
import { Editor } from '@tiptap/core'
|
||||
import React from 'react'
|
||||
|
||||
import { Editor as ExtendedEditor } from './Editor'
|
||||
|
||||
function isClassComponent(Component: any) {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
export * from '@tiptap/core'
|
||||
export * from './BubbleMenu'
|
||||
export { Editor } from './Editor'
|
||||
export * from './FloatingMenu'
|
||||
export * from './useEditor'
|
||||
export * from './ReactRenderer'
|
||||
export * from './ReactNodeViewRenderer'
|
||||
export * from './EditorContent'
|
||||
export * from './NodeViewWrapper'
|
||||
export * from './FloatingMenu'
|
||||
export * from './NodeViewContent'
|
||||
export * from './NodeViewWrapper'
|
||||
export * from './ReactNodeViewRenderer'
|
||||
export * from './ReactRenderer'
|
||||
export * from './useEditor'
|
||||
export * from '@tiptap/core'
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { useState, useEffect, DependencyList } from 'react'
|
||||
import { EditorOptions } from '@tiptap/core'
|
||||
import { DependencyList, useEffect, useState } from 'react'
|
||||
|
||||
import { Editor } from './Editor'
|
||||
|
||||
function useForceUpdate() {
|
||||
|
||||
Reference in New Issue
Block a user