Skip to content

Commit 01b484a

Browse files
committed
fix: coderabbit feedback
1 parent 223f06c commit 01b484a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/biome_js_analyze/src/lint/nursery/no_sync_scripts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl Rule for NoSyncScripts {
118118
},
119119
)
120120
.note(markup! {
121-
"Synchronous scripts can impact your webpage performance. Add the \"async\" or \"defer\" attribute, or replace with Next.js' Script component."
121+
"Synchronous scripts can impact your webpage performance. Add the \"async\" or \"defer\" attribute. If using Next.js, consider the Script component instead."
122122
}),
123123
)
124124
}

crates/biome_js_analyze/tests/specs/nursery/noSyncScripts/invalid.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ invalid.jsx:2:9 lint/nursery/noSyncScripts ━━━━━━━━━━━━
2222
3}
2323
4 │
2424
25-
i Synchronous scripts can impact your webpage performance. Add the "async" or "defer" attribute, or replace with Next.js' Script component.
25+
i Synchronous scripts can impact your webpage performance. Add the "async" or "defer" attribute. If using Next.js, consider the Script component instead.
2626
2727
2828
```

0 commit comments

Comments
 (0)