Skip to content

Commit 4f81194

Browse files
authored
chore(prettier): Add comment to explain prettier trailingComma value (#1032)
1 parent ba43730 commit 4f81194

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

prettier.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
* @type {import("prettier").Config}
77
*/
88
const config = {
9+
// The default changed from 'es5' to 'all' in Prettier v3. It'd be better
10+
// if this framework config matched the config we use for projects. And
11+
// ideally they'd both stay as close as possible to the defaults. But for
12+
// now it's too disruptive to change the config for projects, and I don't
13+
// want to change *away* from defaults here. So I'm leaving it as 'all'.
14+
trailingComma: 'all',
915
bracketSpacing: true,
1016
tabWidth: 2,
1117
semi: false,

0 commit comments

Comments
 (0)