This repository has been archived by the owner on Dec 14, 2019. It is now read-only.
v0.4.0
Use always-multiline
for comma-dangle
in the linter.
This will make both of the following an error:
const myObj = {
foo: "foo",
bar: "bar" // Trailing comma required!
};
const myArray = [
1,
2 // Required here, too!
];
However, trailing commas inline are disallowed:
const myObj = { foo: "foo", bar: "bar", }; // Bad!
const myArray = [ 1, 2, ]; // Bad, too!