Skip to content

Commit 9b12fbe

Browse files
committed
Add override for JSONC formatting
1 parent f05cdc5 commit 9b12fbe

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

prettier.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@ module.exports = {
1616
arrowParens: 'always',
1717
proseWrap: 'always',
1818
endOfLine: 'lf',
19+
20+
overrides: [
21+
// Disable formatting JSONC with trailing commas (discouraged by the format)
22+
// See https://github.com/prettier/prettier/issues/15956#issuecomment-1987146114
23+
{ files: ['*.jsonc'], options: { trailingComma: 'none' } },
24+
],
1925
}

0 commit comments

Comments
 (0)