Skip to content

Commit 4c4e361

Browse files
committed
chore(prettier): add trailingComma option and set to es5.
By default `trailingComma` option is set to `all` when not defined, and this made changes to extension.ts file by adding unnecessary trailing commas to function and method params. This could be seen in all the `showInformationMessage` method calls. By defining the option with the value `es5`, trailing commas will only be affective on arrays and objects, not functions and methods.
1 parent c246fe2 commit 4c4e361

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.prettierrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"*.ts"
3131
],
3232
"options": {
33-
"quoteProps": "consistent"
33+
"quoteProps": "consistent",
34+
"trailingComma": "es5"
3435
}
3536
}
3637
]

0 commit comments

Comments
 (0)