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,5 @@
|
||||
import Vue, { Component, PropType } from 'vue'
|
||||
import { BubbleMenuPlugin, BubbleMenuPluginProps } from '@tiptap/extension-bubble-menu'
|
||||
import Vue, { Component, PropType } from 'vue'
|
||||
|
||||
export interface BubbleMenuInterface extends Vue {
|
||||
pluginKey: BubbleMenuPluginProps['pluginKey'],
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import Vue, { PropType, Component } from 'vue'
|
||||
import Vue, { Component, PropType } from 'vue'
|
||||
|
||||
import { Editor } from './Editor'
|
||||
|
||||
export interface EditorContentInterface extends Vue {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Vue, { Component, PropType } from 'vue'
|
||||
import { FloatingMenuPlugin, FloatingMenuPluginProps } from '@tiptap/extension-floating-menu'
|
||||
import Vue, { Component, PropType } from 'vue'
|
||||
|
||||
export interface FloatingMenuInterface extends Vue {
|
||||
pluginKey: FloatingMenuPluginProps['pluginKey'],
|
||||
|
||||
@@ -13,15 +13,13 @@ export const NodeViewContent: Component = {
|
||||
},
|
||||
|
||||
render(this: NodeViewContentInterface, createElement) {
|
||||
return createElement(
|
||||
this.as, {
|
||||
style: {
|
||||
whiteSpace: 'pre-wrap',
|
||||
},
|
||||
attrs: {
|
||||
'data-node-view-content': '',
|
||||
},
|
||||
return createElement(this.as, {
|
||||
style: {
|
||||
whiteSpace: 'pre-wrap',
|
||||
},
|
||||
)
|
||||
attrs: {
|
||||
'data-node-view-content': '',
|
||||
},
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
@@ -20,7 +20,8 @@ export const NodeViewWrapper: Component = {
|
||||
|
||||
render(this: NodeViewWrapperInterface, createElement) {
|
||||
return createElement(
|
||||
this.as, {
|
||||
this.as,
|
||||
{
|
||||
class: this.decorationClasses.value,
|
||||
style: {
|
||||
whiteSpace: 'normal',
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
import { Node as ProseMirrorNode } from 'prosemirror-model'
|
||||
import { Decoration, NodeView as ProseMirrorNodeView } from 'prosemirror-view'
|
||||
import Vue from 'vue'
|
||||
import { PropType, VueConstructor } from 'vue/types/umd'
|
||||
|
||||
import {
|
||||
NodeView,
|
||||
NodeViewProps,
|
||||
@@ -10,6 +5,10 @@ import {
|
||||
NodeViewRendererOptions,
|
||||
NodeViewRendererProps,
|
||||
} from '@tiptap/core'
|
||||
import { Node as ProseMirrorNode } from 'prosemirror-model'
|
||||
import { Decoration, NodeView as ProseMirrorNodeView } from 'prosemirror-view'
|
||||
import Vue from 'vue'
|
||||
import { PropType, VueConstructor } from 'vue/types/umd'
|
||||
|
||||
import { Editor } from './Editor'
|
||||
import { VueRenderer } from './VueRenderer'
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
export * from '@tiptap/core'
|
||||
export * from './BubbleMenu'
|
||||
export { Editor } from './Editor'
|
||||
export * from './EditorContent'
|
||||
export * from './FloatingMenu'
|
||||
export * from './VueRenderer'
|
||||
export * from './VueNodeViewRenderer'
|
||||
export * from './NodeViewWrapper'
|
||||
export * from './NodeViewContent'
|
||||
export * from './NodeViewWrapper'
|
||||
export * from './VueNodeViewRenderer'
|
||||
export * from './VueRenderer'
|
||||
export * from '@tiptap/core'
|
||||
|
||||
Reference in New Issue
Block a user