Skip to content

Commit ed40581

Browse files
committed
docs(transformer): improve doc comment formatting (#12899)
Nit. Alter formatting of doc comment. Produces same HTML docs, but is easier to read in the Rust code, and doesn't confuse clippy.
1 parent 1ed8c1a commit ed40581

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/oxc_transformer/src/plugins/styled_components.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,10 @@ pub struct StyledComponentsOptions {
114114
/// Transpiles styled-components tagged template literals to a smaller representation
115115
/// than what Babel normally creates, helping to reduce bundle size.
116116
///
117-
/// Converts `styled.div\`width: 100%;\`` to `styled.div(['width: 100%;'])`, which is
117+
/// Converts `` styled.div`width: 100%;` `` to `styled.div(['width: 100%;'])`, which is
118118
/// more compact than the standard Babel template literal transformation.
119119
///
120120
/// Default: `true`
121-
#[expect(clippy::doc_link_with_quotes)]
122121
#[serde(default = "default_as_true")]
123122
pub transpile_template_literals: bool,
124123

0 commit comments

Comments
 (0)