diff --git a/packages/quill/.eslintrc.json b/packages/quill/.eslintrc.json index a686396b13..5fdfa4a528 100644 --- a/packages/quill/.eslintrc.json +++ b/packages/quill/.eslintrc.json @@ -34,7 +34,8 @@ "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-explicit-any": "off", - "import/no-named-as-default-member": "off" + "import/no-named-as-default-member": "off", + "prefer-arrow-callback": "error" } } ] diff --git a/packages/quill/test/unit/blots/inline.spec.ts b/packages/quill/test/unit/blots/inline.spec.ts index 2c5a9da098..4f6cacfde2 100644 --- a/packages/quill/test/unit/blots/inline.spec.ts +++ b/packages/quill/test/unit/blots/inline.spec.ts @@ -25,7 +25,7 @@ describe('Inline', () => { ); const p = scroll.domNode.firstChild as HTMLParagraphElement; const em = document.createElement('em'); - Array.from(p.childNodes).forEach(function (node) { + Array.from(p.childNodes).forEach((node) => { em.appendChild(node); }); p.appendChild(em); diff --git a/packages/quill/test/unit/core/composition.spec.ts b/packages/quill/test/unit/core/composition.spec.ts index 7d2a623120..2a68f4d332 100644 --- a/packages/quill/test/unit/core/composition.spec.ts +++ b/packages/quill/test/unit/core/composition.spec.ts @@ -5,7 +5,7 @@ import { describe, expect, test, vitest } from 'vitest'; import { createRegistry } from '../__helpers__/factory'; import Quill from '../../../src/core'; -describe('Composition', function () { +describe('Composition', () => { test('triggers events on compositionstart', async () => { const emitter = new Emitter(); const scroll = new Scroll(createRegistry(), document.createElement('div'), {