-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
lang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Milestone
Description
I propose that trailing commas should be enabled by default. IE8 is a non issue for most, and this will provide better diffing.
const arr = [
'multi',
'line'
]should be formatted as:
const arr = [
'multi',
'line',
]I would also suggest not enabling it for function arguments, considering that this is not in the official spec yet and won't be fully supported without a transpiler like babel. e.g.:
foo(
arg1,
arg2,
)should be formatted as:
foo(
arg1,
arg2
)jmorrell, vkrol, tsemerad, blainekasten, jRiest and 167 morejnachtigall, jcubic, rhengles, vladshcherbin, wintersocram and 24 moreMoOx, kinday, alfondotnet, matteocng, bpierre and 10 morekinday, luisherranz, matteocng, bpierre, adius and 11 more
Metadata
Metadata
Assignees
Labels
lang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.