diff --git a/packages/tiptap-core/src/utils/injectCSS.ts b/packages/tiptap-core/src/utils/injectCSS.ts index 1aa1d82f2..b15111167 100644 --- a/packages/tiptap-core/src/utils/injectCSS.ts +++ b/packages/tiptap-core/src/utils/injectCSS.ts @@ -1,4 +1,4 @@ -export default function (css: string) { +export default function injectCSS(css: string) { if (process.env.NODE_ENV !== 'test') { const style = document.createElement('style') style.type = 'text/css' diff --git a/packages/tiptap-core/src/utils/magicMethods.ts b/packages/tiptap-core/src/utils/magicMethods.ts index 21f00d7a9..e9bcb5d6b 100644 --- a/packages/tiptap-core/src/utils/magicMethods.ts +++ b/packages/tiptap-core/src/utils/magicMethods.ts @@ -1,4 +1,4 @@ -export default function magicMethods (clazz: any) { +export default function magicMethods(clazz: any) { const classHandler = Object.create(null) classHandler.construct = (target: any, args: any) => { diff --git a/packages/tiptap-core/src/utils/minMax.ts b/packages/tiptap-core/src/utils/minMax.ts index 4887b8599..332cbc598 100644 --- a/packages/tiptap-core/src/utils/minMax.ts +++ b/packages/tiptap-core/src/utils/minMax.ts @@ -1,3 +1,3 @@ -export default function minMax(value:number = 0, min:number = 0, max:number = 0): number { +export default function minMax(value: number = 0, min: number = 0, max: number = 0): number { return Math.min(Math.max(value, min), max) } \ No newline at end of file