Array#push()
accepts multiple arguments. Multiple calls should be combined into one.
This rule is partly fixable.
foo.push(1);
foo.push(2, 3);
foo.push(1, 2, 3);
const length = foo.push(1);
foo.push(2);
foo.push(1);
bar();
foo.push(2);
Array#push()
accepts multiple arguments. Multiple calls should be combined into one.
This rule is partly fixable.
foo.push(1);
foo.push(2, 3);
foo.push(1, 2, 3);
const length = foo.push(1);
foo.push(2);
foo.push(1);
bar();
foo.push(2);