Enable unicorn/no-return-array-push rule (#19375)
This commit is contained in:
1 parent
7f1f8a7cd8
commit
649be79d91
2 files changed
+3
-2
No files matched your search
@@ -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}"`
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user