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,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'],

View File

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

View File

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

View File

@@ -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': '',
},
})
},
}

View File

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

View File

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

View File

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