diff --git a/eslint.config.js b/eslint.config.js index b95e0889b..3980c7c29 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -331,7 +331,6 @@ const configs = [ "unicorn/no-global-object-property-assignment": "off", "unicorn/prefer-await": "off", "unicorn/no-top-level-side-effects": "off", - "unicorn/no-return-array-push": "off", "unicorn/prefer-array-from-map": "off", "unicorn/no-error-property-assignment": "off", // Bug on `"\u{3000}"` diff --git a/tests/unit/ast-path.js b/tests/unit/ast-path.js index 1ff614b1e..a7bd59eac 100644 --- a/tests/unit/ast-path.js +++ b/tests/unit/ast-path.js @@ -54,7 +54,9 @@ describe("AstPath", () => { { const called = []; - path.each(() => called.push(path.getValue()), "children"); + path.each(() => { + called.push(path.getValue()); + }, "children"); expect(called).toStrictEqual(ast.children); }