Fix lint issues

And disable eslint when building in prod mode

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-11-30 10:24:11 +01:00
parent da42522073
commit 2d541f2e32
161 changed files with 3869 additions and 1236 deletions

View File

@@ -13,7 +13,11 @@ declare module "tiptap-commands" {
}
export interface CommandFunction {
(state: EditorState, dispatch: DispatchFn | undefined, view: EditorView): boolean;
(
state: EditorState,
dispatch: DispatchFn | undefined,
view: EditorView
): boolean;
}
export function toggleWrap(type: NodeType): Command;
@@ -25,7 +29,10 @@ declare module "tiptap-commands" {
joinPredicate?: (strs: string[], node: Node) => boolean
): InputRule;
export function toggleMark(type: MarkType, attrs?: { [key: string]: any }): Command;
export function toggleMark(
type: MarkType,
attrs?: { [key: string]: any }
): Command;
export function pasteRule(
regexp: RegExp,