Skip to content
This repository has been archived by the owner on Dec 14, 2019. It is now read-only.

v0.4.0

Compare
Choose a tag to compare
@jkinkead jkinkead released this 30 Sep 22:25
· 8 commits to master since this release

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!