Skip to content

Commit

Permalink
Prefer arrow callback functions
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Feb 12, 2024
1 parent bb3cbc5 commit 69abb4e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/quill/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/quill/test/unit/blots/inline.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion packages/quill/test/unit/core/composition.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'), {
Expand Down

0 comments on commit 69abb4e

Please sign in to comment.