Require or disallow trailing commas (,).
// By default, trailing commas are not allowed.
interface MyType {
bar: string;
qux: string;
}
const foo: MyType = {
bar: 'baz',
qux: 'qux'
};
const arr = ['1', '2'];
export { foo, arr }; interface MyType {
bar: string;
qux: string;
}
const foo: MyType = {
bar: 'baz',
qux: 'qux',
};
const arr = ['1', '2',];
export { foo, arr, }; plugin:@typescript-eslint/all
For details about how to configure Code Linter check rules, see Code Linter.