diff --git a/website/blog/2026-06-27-3.9.0.md b/website/blog/2026-06-27-3.9.0.md index 6fc88261e..048dad117 100644 --- a/website/blog/2026-06-27-3.9.0.md +++ b/website/blog/2026-06-27-3.9.0.md @@ -557,6 +557,28 @@ const array = [/* comment */]; const object = {/* comment */}; ``` +_You can use line comment or multiline comment to force the array and object to break._ + + +```js +const array = [ + // comment +]; +const object = { + // comment +}; +const array2 = [ + /* + comment + */ +]; +const object2 = { + /* + comment + */ +}; +``` + #### Fix dangling comment print in function parameters ([#18623](https://github.com/prettier/prettier/pull/18623) by [@fisker](https://github.com/fisker)) {#change-18623}