You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 56d1880
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: crates/oxc_formatter/src/formatter/trivia.rs
+18-16Lines changed: 18 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -88,25 +88,23 @@ use crate::{JsLabels, write};
88
88
89
89
usesuper::prelude::*;
90
90
91
-
/// Returns true if:
92
-
/// - `next_comment` is Some, and
93
-
/// - both comments are documentation comments, and
94
-
/// - both comments are multiline, and
95
-
/// - the two comments are immediately adjacent to each other, with no characters between them.
91
+
/// Returns true if both comments are alignable and immediately adjacent, with no characters between them.
96
92
///
97
93
/// In this case, the comments are considered "nestled" - a pattern that JSDoc uses to represent
98
94
/// overloaded types, which get merged together to create the final type for the subject. The
99
95
/// comments must be kept immediately adjacent after formatting to preserve this behavior.
100
96
///
101
97
/// There isn't much documentation about this behavior, but it is mentioned on the JSDoc repo
102
-
/// for documentation: <https://github.com/jsdoc/jsdoc.github.io/issues/40>. Prettier also
103
-
/// implements the same behavior: <https://github.com/prettier/prettier/pull/13445/files#diff-3d5eaa2a1593372823589e6e55e7ca905f7c64203ecada0aa4b3b0cdddd5c3ddR160-R178>
0 commit comments