Fix lint issues
And disable eslint when building in prod mode Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
5
js/src/typings/intl.d.ts
vendored
5
js/src/typings/intl.d.ts
vendored
@@ -11,7 +11,10 @@ declare namespace Intl {
|
||||
}
|
||||
|
||||
class ListFormat {
|
||||
constructor(locales?: Locale | Locales | undefined, options?: Partial<ListFormatOptions>);
|
||||
constructor(
|
||||
locales?: Locale | Locales | undefined,
|
||||
options?: Partial<ListFormatOptions>
|
||||
);
|
||||
public format: (items: string[]) => string;
|
||||
}
|
||||
}
|
||||
|
||||
11
js/src/typings/tiptap-commands.d.ts
vendored
11
js/src/typings/tiptap-commands.d.ts
vendored
@@ -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,
|
||||
|
||||
8
js/src/typings/tiptap.d.ts
vendored
8
js/src/typings/tiptap.d.ts
vendored
@@ -76,7 +76,13 @@ declare module "tiptap" {
|
||||
parseOptions?: ParseOptions;
|
||||
/** defaults to true */
|
||||
injectCSS?: boolean;
|
||||
onInit?: ({ view, state }: { view: EditorView; state: EditorState }) => void;
|
||||
onInit?: ({
|
||||
view,
|
||||
state,
|
||||
}: {
|
||||
view: EditorView;
|
||||
state: EditorState;
|
||||
}) => void;
|
||||
onTransaction?: (event: EditorUpdateEvent) => void;
|
||||
onUpdate?: (event: EditorUpdateEvent) => void;
|
||||
onFocus?: ({
|
||||
|
||||
Reference in New Issue
Block a user