Open ronny opened 7 years ago
I think there's also something to be said about using this rule to ensure cleaner commits.
const test = {
- one: 1
+ one: 1,
+ two: 2
}
vs.
const test = {
one: 1,
+ two: 2,
}
however, writing arrays like this: const nums = [1,2,3,4,]
feels a little weird...
@joshgillies that trailing comma in a single line will error inalways-multiline
Ah, ok then! Thanks @ronny 😄
@pomke You voted this down, mind explaining why?
comma-dangle set to
always-multiline
Why?