help wantednew rule
Repository metrics
- Stars
- (5,022 stars)
- PR merge metrics
- (Avg merge 1d 16h) (399 merged PRs in 30d)
Description
Description
I see my newbine team member write following code when I code review:
sItems.splice(0, 0, { itemType: 'Ungroup' });
Fail
arr.splice(0, 0, {})
Pass
arr.unshift({})
Additional Info
maybe another proposal to suggest:
arr.splice(0, 1)
to:
arr.shift()