Skip to content

Commit f5a1438

Browse files
committed
reorder the docstring sections
1 parent 66c591f commit f5a1438

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

crates/biome_json_analyze/src/lint/nursery/use_required_scripts.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ declare_lint_rule! {
1010
/// This rule ensures that specified scripts are defined in the `scripts` section of a `package.json` file.
1111
/// It's particularly useful in monorepo environments where consistency across workspaces is important.
1212
///
13-
/// ## Options
14-
///
15-
/// ### `requiredScripts`
13+
/// ## Examples
1614
///
17-
/// An array of script names that must be present in the `scripts` section of `package.json`.
15+
/// ### Invalid
1816
///
1917
/// ```json,options
2018
/// {
@@ -24,10 +22,6 @@ declare_lint_rule! {
2422
/// }
2523
/// ```
2624
///
27-
/// ## Examples
28-
///
29-
/// ### Invalid
30-
///
3125
/// ```json,expect_diagnostic,use_options
3226
/// {
3327
/// "scripts": {
@@ -47,6 +41,13 @@ declare_lint_rule! {
4741
/// }
4842
/// ```
4943
///
44+
/// ## Options
45+
///
46+
/// ### `requiredScripts`
47+
///
48+
/// An array of script names that must be present in the `scripts` section of `package.json`.
49+
/// Default: `[]` (no scripts required)
50+
///
5051
pub UseRequiredScripts {
5152
version: "next",
5253
name: "useRequiredScripts",

0 commit comments

Comments
 (0)