File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
crates/biome_json_analyze/src/lint/nursery Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments