Enable unicorn/no-return-array-push rule (#19375)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-06-16 04:27:30 +08:00
1 parent 7f1f8a7cd8
commit 649be79d91
2 files changed
+3 -2

No files matched your search

-1
View File
@@ -331,7 +331,6 @@ const configs = [
"unicorn/no-global-object-property-assignment": "off", "unicorn/no-global-object-property-assignment": "off",
"unicorn/prefer-await": "off", "unicorn/prefer-await": "off",
"unicorn/no-top-level-side-effects": "off", "unicorn/no-top-level-side-effects": "off",
"unicorn/no-return-array-push": "off",
"unicorn/prefer-array-from-map": "off", "unicorn/prefer-array-from-map": "off",
"unicorn/no-error-property-assignment": "off", "unicorn/no-error-property-assignment": "off",
// Bug on `"\u{3000}"` // Bug on `"\u{3000}"`
+3 -1
View File
@@ -54,7 +54,9 @@ describe("AstPath", () => {
{ {
const called = []; const called = [];
path.each(() => called.push(path.getValue()), "children"); path.each(() => {
called.push(path.getValue());
}, "children");
expect(called).toStrictEqual(ast.children); expect(called).toStrictEqual(ast.children);
} }