diff --git a/.changeset/modern-eggs-hang.md b/.changeset/modern-eggs-hang.md new file mode 100644 index 000000000000..dbb0a92be476 --- /dev/null +++ b/.changeset/modern-eggs-hang.md @@ -0,0 +1,5 @@ +--- +"@biomejs/biome": patch +--- + +Improved the diagnostics of nursery rules. Added a message to diagnostics emitted by nursery rules, so that users are aware of nature of nursery rules. diff --git a/crates/biome_analyze/src/signals.rs b/crates/biome_analyze/src/signals.rs index adfd0a23e85f..8ab8b55396dd 100644 --- a/crates/biome_analyze/src/signals.rs +++ b/crates/biome_analyze/src/signals.rs @@ -380,8 +380,13 @@ where if let Some(issue_number) = ctx.metadata().issue_number { let url = format!("https://github.com/biomejs/biome/issues/{}", issue_number); diagnostic = diagnostic.note(markup! { - "This rule is still being actively worked on, so it may be missing features or have rough edges. Visit "{url.as_str()}" for more information or to report possible bugs." - }); + "This rule is still being actively worked on, so it may be missing features or have rough edges. Visit "{url.as_str()}" for more information or to report possible bugs." + }); + } + if ::NAME == "nursery" { + diagnostic = diagnostic.note(markup! { + "This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit ""https://biomejs.dev/linter/#nursery"" for more information." + }); } AnalyzerDiagnostic::from(diagnostic) }) diff --git a/crates/biome_cli/tests/snapshots/main_commands_lint/linter_can_resolve_imported_symbols.snap b/crates/biome_cli/tests/snapshots/main_commands_lint/linter_can_resolve_imported_symbols.snap index 929128f2b217..9d96a5c9a7e2 100644 --- a/crates/biome_cli/tests/snapshots/main_commands_lint/linter_can_resolve_imported_symbols.snap +++ b/crates/biome_cli/tests/snapshots/main_commands_lint/linter_can_resolve_imported_symbols.snap @@ -48,6 +48,8 @@ src/index.ts:5:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_cli/tests/snapshots/main_commands_lint/linter_enables_project_domain_based_on_extended_config.snap b/crates/biome_cli/tests/snapshots/main_commands_lint/linter_enables_project_domain_based_on_extended_config.snap index dda350886863..c3dcd4463904 100644 --- a/crates/biome_cli/tests/snapshots/main_commands_lint/linter_enables_project_domain_based_on_extended_config.snap +++ b/crates/biome_cli/tests/snapshots/main_commands_lint/linter_enables_project_domain_based_on_extended_config.snap @@ -54,6 +54,8 @@ src/index.ts:5:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_css_analyze/tests/specs/nursery/noEmptySource/invalid/comment.css.snap b/crates/biome_css_analyze/tests/specs/nursery/noEmptySource/invalid/comment.css.snap index 2e872ceaab34..615619f41850 100644 --- a/crates/biome_css_analyze/tests/specs/nursery/noEmptySource/invalid/comment.css.snap +++ b/crates/biome_css_analyze/tests/specs/nursery/noEmptySource/invalid/comment.css.snap @@ -20,5 +20,7 @@ comment.css:2:1 lint/nursery/noEmptySource ━━━━━━━━━━━━ i Empty sources can clutter the codebase and increase cognitive load; deleting empty sources can help reduce it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_css_analyze/tests/specs/nursery/noEmptySource/invalid/empty.css.snap b/crates/biome_css_analyze/tests/specs/nursery/noEmptySource/invalid/empty.css.snap index 3eae27bc0ede..85eb854790db 100644 --- a/crates/biome_css_analyze/tests/specs/nursery/noEmptySource/invalid/empty.css.snap +++ b/crates/biome_css_analyze/tests/specs/nursery/noEmptySource/invalid/empty.css.snap @@ -18,5 +18,7 @@ empty.css:1:1 lint/nursery/noEmptySource ━━━━━━━━━━━━━ i Empty sources can clutter the codebase and increase cognitive load; deleting empty sources can help reduce it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_graphql_analyze/tests/specs/nursery/noEmptySource/invalid/comment.graphql.snap b/crates/biome_graphql_analyze/tests/specs/nursery/noEmptySource/invalid/comment.graphql.snap index e2f243058fc1..2843d6e531ad 100644 --- a/crates/biome_graphql_analyze/tests/specs/nursery/noEmptySource/invalid/comment.graphql.snap +++ b/crates/biome_graphql_analyze/tests/specs/nursery/noEmptySource/invalid/comment.graphql.snap @@ -20,5 +20,7 @@ comment.graphql:2:1 lint/nursery/noEmptySource ━━━━━━━━━━━ i Empty sources can clutter the codebase and increase cognitive load; deleting empty sources can help reduce it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_graphql_analyze/tests/specs/nursery/noEmptySource/invalid/empty.graphql.snap b/crates/biome_graphql_analyze/tests/specs/nursery/noEmptySource/invalid/empty.graphql.snap index ddca63460c12..8d15e03ad83b 100644 --- a/crates/biome_graphql_analyze/tests/specs/nursery/noEmptySource/invalid/empty.graphql.snap +++ b/crates/biome_graphql_analyze/tests/specs/nursery/noEmptySource/invalid/empty.graphql.snap @@ -18,5 +18,7 @@ empty.graphql:1:1 lint/nursery/noEmptySource ━━━━━━━━━━━ i Empty sources can clutter the codebase and increase cognitive load; deleting empty sources can help reduce it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_graphql_analyze/tests/specs/nursery/useConsistentGraphqlDescriptions/block/invalid.graphql.snap b/crates/biome_graphql_analyze/tests/specs/nursery/useConsistentGraphqlDescriptions/block/invalid.graphql.snap index 4d54b5a53226..4164d009d400 100644 --- a/crates/biome_graphql_analyze/tests/specs/nursery/useConsistentGraphqlDescriptions/block/invalid.graphql.snap +++ b/crates/biome_graphql_analyze/tests/specs/nursery/useConsistentGraphqlDescriptions/block/invalid.graphql.snap @@ -29,6 +29,8 @@ invalid.graphql:2:2 lint/nursery/useConsistentGraphqlDescriptions ━━━━ i To stay consistent within the project, write the description block style. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -46,6 +48,8 @@ invalid.graphql:4:2 lint/nursery/useConsistentGraphqlDescriptions ━━━━ i To stay consistent within the project, write the description block style. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -63,5 +67,7 @@ invalid.graphql:6:2 lint/nursery/useConsistentGraphqlDescriptions ━━━━ i To stay consistent within the project, write the description block style. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_graphql_analyze/tests/specs/nursery/useConsistentGraphqlDescriptions/inline/invalid.graphql.snap b/crates/biome_graphql_analyze/tests/specs/nursery/useConsistentGraphqlDescriptions/inline/invalid.graphql.snap index f480682eea82..46343f1c42a0 100644 --- a/crates/biome_graphql_analyze/tests/specs/nursery/useConsistentGraphqlDescriptions/inline/invalid.graphql.snap +++ b/crates/biome_graphql_analyze/tests/specs/nursery/useConsistentGraphqlDescriptions/inline/invalid.graphql.snap @@ -38,6 +38,8 @@ invalid.graphql:2:2 lint/nursery/useConsistentGraphqlDescriptions ━━━━ i To stay consistent within the project, write the description inline style. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -58,6 +60,8 @@ invalid.graphql:6:2 lint/nursery/useConsistentGraphqlDescriptions ━━━━ i To stay consistent within the project, write the description inline style. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -78,5 +82,7 @@ invalid.graphql:10:2 lint/nursery/useConsistentGraphqlDescriptions ━━━━ i To stay consistent within the project, write the description inline style. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_graphql_analyze/tests/specs/nursery/useDeprecatedDate/invalid.graphql.snap b/crates/biome_graphql_analyze/tests/specs/nursery/useDeprecatedDate/invalid.graphql.snap index 3a166c5b0c46..de575eb9d29d 100644 --- a/crates/biome_graphql_analyze/tests/specs/nursery/useDeprecatedDate/invalid.graphql.snap +++ b/crates/biome_graphql_analyze/tests/specs/nursery/useDeprecatedDate/invalid.graphql.snap @@ -38,6 +38,8 @@ invalid.graphql:2:10 lint/nursery/useDeprecatedDate ━━━━━━━━━ i Add a `deletionDate` argument to the directive. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -54,6 +56,8 @@ invalid.graphql:8:10 lint/nursery/useDeprecatedDate ━━━━━━━━━ i The argument must match the `YYYY-MM-DD` format. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -70,5 +74,7 @@ invalid.graphql:14:10 lint/nursery/useDeprecatedDate ━━━━━━━━━ i Remove deprecated code or move deprecation date to the future. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_graphql_analyze/tests/specs/nursery/useUniqueGraphqlOperationName/invalid.graphql.snap b/crates/biome_graphql_analyze/tests/specs/nursery/useUniqueGraphqlOperationName/invalid.graphql.snap index 7dde70be9ab6..0c915bba0da0 100644 --- a/crates/biome_graphql_analyze/tests/specs/nursery/useUniqueGraphqlOperationName/invalid.graphql.snap +++ b/crates/biome_graphql_analyze/tests/specs/nursery/useUniqueGraphqlOperationName/invalid.graphql.snap @@ -58,6 +58,8 @@ invalid.graphql:7:1 lint/nursery/useUniqueGraphqlOperationName ━━━━━ i Rename the operation to have a unique name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -82,6 +84,8 @@ invalid.graphql:19:1 lint/nursery/useUniqueGraphqlOperationName ━━━━━ i Rename the operation to have a unique name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -105,5 +109,7 @@ invalid.graphql:25:1 lint/nursery/useUniqueGraphqlOperationName ━━━━━ i Rename the operation to have a unique name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_html_analyze/tests/specs/nursery/noAmbiguousAnchorText/invalid.html.snap b/crates/biome_html_analyze/tests/specs/nursery/noAmbiguousAnchorText/invalid.html.snap index 5f80988c63a2..56ddbf814fa5 100644 --- a/crates/biome_html_analyze/tests/specs/nursery/noAmbiguousAnchorText/invalid.html.snap +++ b/crates/biome_html_analyze/tests/specs/nursery/noAmbiguousAnchorText/invalid.html.snap @@ -71,6 +71,8 @@ invalid.html:3:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -88,6 +90,8 @@ invalid.html:5:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -105,6 +109,8 @@ invalid.html:7:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -122,6 +128,8 @@ invalid.html:9:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -139,6 +147,8 @@ invalid.html:11:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -156,6 +166,8 @@ invalid.html:13:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -173,6 +185,8 @@ invalid.html:15:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -190,6 +204,8 @@ invalid.html:17:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -207,6 +223,8 @@ invalid.html:19:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -224,6 +242,8 @@ invalid.html:21:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -241,6 +261,8 @@ invalid.html:23:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -258,6 +280,8 @@ invalid.html:25:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -275,6 +299,8 @@ invalid.html:27:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -292,6 +318,8 @@ invalid.html:29:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -309,6 +337,8 @@ invalid.html:31:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -326,6 +356,8 @@ invalid.html:33:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -343,6 +375,8 @@ invalid.html:35:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -360,6 +394,8 @@ invalid.html:37:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -377,6 +413,8 @@ invalid.html:39:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -394,6 +432,8 @@ invalid.html:41:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -411,6 +451,8 @@ invalid.html:43:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -428,6 +470,8 @@ invalid.html:45:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -445,6 +489,8 @@ invalid.html:47:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -461,5 +507,7 @@ invalid.html:49:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_html_analyze/tests/specs/nursery/noAmbiguousAnchorText/words/invalid.html.snap b/crates/biome_html_analyze/tests/specs/nursery/noAmbiguousAnchorText/words/invalid.html.snap index 0421c74e6d0f..fbfc09ec1061 100644 --- a/crates/biome_html_analyze/tests/specs/nursery/noAmbiguousAnchorText/words/invalid.html.snap +++ b/crates/biome_html_analyze/tests/specs/nursery/noAmbiguousAnchorText/words/invalid.html.snap @@ -22,5 +22,7 @@ invalid.html:2:1 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_html_analyze/tests/specs/nursery/noScriptUrl/invalid.astro.snap b/crates/biome_html_analyze/tests/specs/nursery/noScriptUrl/invalid.astro.snap index 30b86209b708..186d9512ddce 100644 --- a/crates/biome_html_analyze/tests/specs/nursery/noScriptUrl/invalid.astro.snap +++ b/crates/biome_html_analyze/tests/specs/nursery/noScriptUrl/invalid.astro.snap @@ -31,6 +31,8 @@ invalid.astro:5:8 lint/nursery/noScriptUrl ━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -49,6 +51,8 @@ invalid.astro:6:8 lint/nursery/noScriptUrl ━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -67,5 +71,7 @@ invalid.astro:7:8 lint/nursery/noScriptUrl ━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_html_analyze/tests/specs/nursery/noScriptUrl/invalid.html.snap b/crates/biome_html_analyze/tests/specs/nursery/noScriptUrl/invalid.html.snap index 9b84c3d15018..3ac2cca20221 100644 --- a/crates/biome_html_analyze/tests/specs/nursery/noScriptUrl/invalid.html.snap +++ b/crates/biome_html_analyze/tests/specs/nursery/noScriptUrl/invalid.html.snap @@ -33,6 +33,8 @@ invalid.html:3:8 lint/nursery/noScriptUrl ━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -52,6 +54,8 @@ invalid.html:5:8 lint/nursery/noScriptUrl ━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -71,6 +75,8 @@ invalid.html:7:8 lint/nursery/noScriptUrl ━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -89,5 +95,7 @@ invalid.html:9:8 lint/nursery/noScriptUrl ━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_html_analyze/tests/specs/nursery/noScriptUrl/invalid.svelte.snap b/crates/biome_html_analyze/tests/specs/nursery/noScriptUrl/invalid.svelte.snap index c5f202eea123..e811865e1efe 100644 --- a/crates/biome_html_analyze/tests/specs/nursery/noScriptUrl/invalid.svelte.snap +++ b/crates/biome_html_analyze/tests/specs/nursery/noScriptUrl/invalid.svelte.snap @@ -29,6 +29,8 @@ invalid.svelte:3:8 lint/nursery/noScriptUrl ━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -47,6 +49,8 @@ invalid.svelte:4:8 lint/nursery/noScriptUrl ━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -65,5 +69,7 @@ invalid.svelte:5:8 lint/nursery/noScriptUrl ━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_html_analyze/tests/specs/nursery/noScriptUrl/invalid.vue.snap b/crates/biome_html_analyze/tests/specs/nursery/noScriptUrl/invalid.vue.snap index b0f116e1b99e..816e87f149ee 100644 --- a/crates/biome_html_analyze/tests/specs/nursery/noScriptUrl/invalid.vue.snap +++ b/crates/biome_html_analyze/tests/specs/nursery/noScriptUrl/invalid.vue.snap @@ -30,6 +30,8 @@ invalid.vue:4:10 lint/nursery/noScriptUrl ━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -49,6 +51,8 @@ invalid.vue:5:10 lint/nursery/noScriptUrl ━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -68,5 +72,7 @@ invalid.vue:6:10 lint/nursery/noScriptUrl ━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_html_analyze/tests/specs/nursery/noSyncScripts/invalid.html.snap b/crates/biome_html_analyze/tests/specs/nursery/noSyncScripts/invalid.html.snap index 40dd62cc8a8e..dd2f56fd8fbc 100644 --- a/crates/biome_html_analyze/tests/specs/nursery/noSyncScripts/invalid.html.snap +++ b/crates/biome_html_analyze/tests/specs/nursery/noSyncScripts/invalid.html.snap @@ -23,6 +23,8 @@ invalid.html:1:1 lint/nursery/noSyncScripts ━━━━━━━━━━━━ i Synchronous scripts can impact your webpage performance. Add the "async" or "defer" attribute. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -39,5 +41,7 @@ invalid.html:3:1 lint/nursery/noSyncScripts ━━━━━━━━━━━━ i Synchronous scripts can impact your webpage performance. Add the "async" or "defer" attribute. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_html_analyze/tests/specs/nursery/noVueVIfWithVFor/invalid.vue.snap b/crates/biome_html_analyze/tests/specs/nursery/noVueVIfWithVFor/invalid.vue.snap index 9c1a70139680..131d038c9442 100644 --- a/crates/biome_html_analyze/tests/specs/nursery/noVueVIfWithVFor/invalid.vue.snap +++ b/crates/biome_html_analyze/tests/specs/nursery/noVueVIfWithVFor/invalid.vue.snap @@ -43,6 +43,8 @@ invalid.vue:5:3 lint/nursery/noVueVIfWithVFor ━━━━━━━━━━━ i Using v-if and v-for on the same element can lead to unexpected behavior and performance issues. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -68,5 +70,7 @@ invalid.vue:10:3 lint/nursery/noVueVIfWithVFor ━━━━━━━━━━━ i Using v-if and v-for on the same element can lead to unexpected behavior and performance issues. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_html_analyze/tests/specs/nursery/useVueHyphenatedAttributes/invalid.vue.snap b/crates/biome_html_analyze/tests/specs/nursery/useVueHyphenatedAttributes/invalid.vue.snap index 9943b9e7c903..ef7374694c33 100644 --- a/crates/biome_html_analyze/tests/specs/nursery/useVueHyphenatedAttributes/invalid.vue.snap +++ b/crates/biome_html_analyze/tests/specs/nursery/useVueHyphenatedAttributes/invalid.vue.snap @@ -38,6 +38,8 @@ invalid.vue:4:6 lint/nursery/useVueHyphenatedAttributes FIXABLE ━━━━ i The Vue style guide recommends using hyphenated attribute (and prop) names in templates to keep them consistent. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Rename the attribute to some-attr. 2 2 │ @@ -64,6 +66,8 @@ invalid.vue:5:6 lint/nursery/useVueHyphenatedAttributes FIXABLE ━━━━ i The Vue style guide recommends using hyphenated attribute (and prop) names in templates to keep them consistent. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Rename the attribute to some-attr. 3 3 │ @@ -90,6 +94,8 @@ invalid.vue:6:6 lint/nursery/useVueHyphenatedAttributes FIXABLE ━━━━ i The Vue style guide recommends using hyphenated attribute (and prop) names in templates to keep them consistent. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Rename the attribute to some-attr. 4 4 │
@@ -116,6 +122,8 @@ invalid.vue:7:6 lint/nursery/useVueHyphenatedAttributes FIXABLE ━━━━ i The Vue style guide recommends using hyphenated attribute (and prop) names in templates to keep them consistent. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Rename the attribute to some-attr. 5 5 │
@@ -141,6 +149,8 @@ invalid.vue:10:6 lint/nursery/useVueHyphenatedAttributes FIXABLE ━━━━ i The Vue style guide recommends using hyphenated attribute (and prop) names in templates to keep them consistent. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Rename the attribute to foo-bar. 8 8 │ @@ -167,6 +177,8 @@ invalid.vue:11:6 lint/nursery/useVueHyphenatedAttributes FIXABLE ━━━━ i The Vue style guide recommends using hyphenated attribute (and prop) names in templates to keep them consistent. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Rename the attribute to foo-bar. 9 9 │ @@ -193,6 +205,8 @@ invalid.vue:13:6 lint/nursery/useVueHyphenatedAttributes FIXABLE ━━━━ i The Vue style guide recommends using hyphenated attribute (and prop) names in templates to keep them consistent. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Rename the attribute to foo-bar. 11 11 │
@@ -218,6 +232,8 @@ invalid.vue:16:9 lint/nursery/useVueHyphenatedAttributes FIXABLE ━━━━ i The Vue style guide recommends using hyphenated attribute (and prop) names in templates to keep them consistent. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Rename the attribute to some-prop. 14 14 │ @@ -243,6 +259,8 @@ invalid.vue:16:22 lint/nursery/useVueHyphenatedAttributes FIXABLE ━━━━ i The Vue style guide recommends using hyphenated attribute (and prop) names in templates to keep them consistent. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Rename the attribute to another-prop. 14 14 │ @@ -268,6 +286,8 @@ invalid.vue:17:9 lint/nursery/useVueHyphenatedAttributes FIXABLE ━━━━ i The Vue style guide recommends using hyphenated attribute (and prop) names in templates to keep them consistent. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Rename the attribute to some-prop. 15 15 │ @@ -292,6 +312,8 @@ invalid.vue:17:22 lint/nursery/useVueHyphenatedAttributes FIXABLE ━━━━ i The Vue style guide recommends using hyphenated attribute (and prop) names in templates to keep them consistent. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Rename the attribute to another-prop. 15 15 │ diff --git a/crates/biome_html_analyze/tests/specs/nursery/useVueValidVBind/invalid.vue.snap b/crates/biome_html_analyze/tests/specs/nursery/useVueValidVBind/invalid.vue.snap index 7983ef903c50..c93b06ce24fc 100644 --- a/crates/biome_html_analyze/tests/specs/nursery/useVueValidVBind/invalid.vue.snap +++ b/crates/biome_html_analyze/tests/specs/nursery/useVueValidVBind/invalid.vue.snap @@ -57,6 +57,8 @@ invalid.vue:5:8 lint/nursery/useVueValidVBind ━━━━━━━━━━━ i Add a value to the directive, e.g. v-bind:foo="bar". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -76,6 +78,8 @@ invalid.vue:6:8 lint/nursery/useVueValidVBind ━━━━━━━━━━━ i Add a value to the directive, e.g. v-bind:foo="bar". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -95,6 +99,8 @@ invalid.vue:7:8 lint/nursery/useVueValidVBind ━━━━━━━━━━━ i Add a value to the directive, e.g. v-bind:foo="bar". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -113,6 +119,8 @@ invalid.vue:10:8 lint/nursery/useVueValidVBind ━━━━━━━━━━━ i Add a value to the directive, e.g. v-bind:foo="bar". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -132,6 +140,8 @@ invalid.vue:11:8 lint/nursery/useVueValidVBind ━━━━━━━━━━━ i Add a value to the directive, e.g. v-bind:foo="bar". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -150,6 +160,8 @@ invalid.vue:14:8 lint/nursery/useVueValidVBind ━━━━━━━━━━━ i Add a value to the directive, e.g. v-bind:foo="bar". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -168,6 +180,8 @@ invalid.vue:17:18 lint/nursery/useVueValidVBind ━━━━━━━━━━ i Remove or correct the invalid modifier. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -186,6 +200,8 @@ invalid.vue:20:13 lint/nursery/useVueValidVBind ━━━━━━━━━━ i Remove or correct the invalid modifier. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -204,6 +220,8 @@ invalid.vue:23:15 lint/nursery/useVueValidVBind ━━━━━━━━━━ i Remove or correct the invalid modifier. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -222,6 +240,8 @@ invalid.vue:26:22 lint/nursery/useVueValidVBind ━━━━━━━━━━ i Remove or correct the invalid modifier. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -240,6 +260,8 @@ invalid.vue:29:20 lint/nursery/useVueValidVBind ━━━━━━━━━━ i Remove or correct the invalid modifier. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -258,5 +280,7 @@ invalid.vue:32:31 lint/nursery/useVueValidVBind ━━━━━━━━━━ i Remove or correct the invalid modifier. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_html_analyze/tests/specs/nursery/useVueValidVElse/invalid.vue.snap b/crates/biome_html_analyze/tests/specs/nursery/useVueValidVElse/invalid.vue.snap index 3f6aa81f81f4..71db49f029f3 100644 --- a/crates/biome_html_analyze/tests/specs/nursery/useVueValidVElse/invalid.vue.snap +++ b/crates/biome_html_analyze/tests/specs/nursery/useVueValidVElse/invalid.vue.snap @@ -51,6 +51,8 @@ invalid.vue:5:14 lint/nursery/useVueValidVElse ━━━━━━━━━━━ i Remove the argument; v-else is a stand-alone control directive. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -67,6 +69,8 @@ invalid.vue:8:14 lint/nursery/useVueValidVElse ━━━━━━━━━━━ i Remove the modifier; v-else is a stand-alone control directive. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -83,6 +87,8 @@ invalid.vue:11:14 lint/nursery/useVueValidVElse ━━━━━━━━━━ i Remove the value; v-else is a stand-alone control directive. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -99,6 +105,8 @@ invalid.vue:14:8 lint/nursery/useVueValidVElse ━━━━━━━━━━━ i Place v-else immediately after an element with v-if or v-else-if, within the same parent. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -116,6 +124,8 @@ invalid.vue:18:8 lint/nursery/useVueValidVElse ━━━━━━━━━━━ i Place v-else immediately after an element with v-if or v-else-if, within the same parent. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -132,6 +142,8 @@ invalid.vue:21:25 lint/nursery/useVueValidVElse ━━━━━━━━━━ i Move v-else onto a separate element immediately following the v-if/v-else-if element. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -148,6 +160,8 @@ invalid.vue:24:30 lint/nursery/useVueValidVElse ━━━━━━━━━━ i Move v-else onto a separate element immediately following the v-if/v-else-if element. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -164,5 +178,7 @@ invalid.vue:29:8 lint/nursery/useVueValidVElse ━━━━━━━━━━━ i Place v-else immediately after an element with v-if or v-else-if, within the same parent. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_html_analyze/tests/specs/nursery/useVueValidVElseIf/invalid.vue.snap b/crates/biome_html_analyze/tests/specs/nursery/useVueValidVElseIf/invalid.vue.snap index 824ee4d842d0..61ffe8b61c28 100644 --- a/crates/biome_html_analyze/tests/specs/nursery/useVueValidVElseIf/invalid.vue.snap +++ b/crates/biome_html_analyze/tests/specs/nursery/useVueValidVElseIf/invalid.vue.snap @@ -56,6 +56,8 @@ invalid.vue:5:28 lint/nursery/useVueValidVElseIf ━━━━━━━━━━ i For example, use v-else-if="condition" instead of v-else-if:arg="condition". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -74,6 +76,8 @@ invalid.vue:8:37 lint/nursery/useVueValidVElseIf ━━━━━━━━━━ i For example, use v-else-if="condition" instead of v-else-if.mod="condition". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -92,6 +96,8 @@ invalid.vue:11:28 lint/nursery/useVueValidVElseIf ━━━━━━━━━━ i For example, use v-else-if="condition" instead of just v-else-if. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -110,6 +116,8 @@ invalid.vue:14:8 lint/nursery/useVueValidVElseIf ━━━━━━━━━━ i v-else-if directives are part of conditional chains and must follow another conditional directive. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -128,6 +136,8 @@ invalid.vue:17:8 lint/nursery/useVueValidVElseIf ━━━━━━━━━━ i Each element should only have one conditional directive from the v-if/v-else-if/v-else family. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -146,6 +156,8 @@ invalid.vue:23:21 lint/nursery/useVueValidVElseIf ━━━━━━━━━━ i v-else-if directives are part of conditional chains and must follow another conditional directive. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -164,6 +176,8 @@ invalid.vue:29:37 lint/nursery/useVueValidVElseIf ━━━━━━━━━━ i For example, use v-else-if="condition" instead of v-else-if.mod="condition". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -181,5 +195,7 @@ invalid.vue:32:28 lint/nursery/useVueValidVElseIf ━━━━━━━━━━ i For example, use v-else-if="condition" instead of v-else-if:arg="condition". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_html_analyze/tests/specs/nursery/useVueValidVHtml/invalid.vue.snap b/crates/biome_html_analyze/tests/specs/nursery/useVueValidVHtml/invalid.vue.snap index 102d26fc3d34..74fbbec600e9 100644 --- a/crates/biome_html_analyze/tests/specs/nursery/useVueValidVHtml/invalid.vue.snap +++ b/crates/biome_html_analyze/tests/specs/nursery/useVueValidVHtml/invalid.vue.snap @@ -47,6 +47,8 @@ invalid.vue:5:8 lint/nursery/useVueValidVHtml ━━━━━━━━━━━ i For example, use v-html="htmlContent" to render the content of the htmlContent variable. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -65,6 +67,8 @@ invalid.vue:8:8 lint/nursery/useVueValidVHtml ━━━━━━━━━━━ i For example, use v-html="htmlContent" to render the content of the htmlContent variable. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -81,6 +85,8 @@ invalid.vue:11:14 lint/nursery/useVueValidVHtml ━━━━━━━━━━ i v-html directives should be used without arguments, like v-html="content". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -97,6 +103,8 @@ invalid.vue:14:14 lint/nursery/useVueValidVHtml ━━━━━━━━━━ i v-html directives do not support any modifiers. Remove the modifier. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -113,6 +121,8 @@ invalid.vue:17:14 lint/nursery/useVueValidVHtml ━━━━━━━━━━ i v-html directives should be used without arguments, like v-html="content". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -129,6 +139,8 @@ invalid.vue:20:14 lint/nursery/useVueValidVHtml ━━━━━━━━━━ i v-html directives do not support any modifiers. Remove the modifier. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -144,5 +156,7 @@ invalid.vue:23:31 lint/nursery/useVueValidVHtml ━━━━━━━━━━ i v-html directives should be used without arguments, like v-html="content". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_html_analyze/tests/specs/nursery/useVueValidVIf/invalid.vue.snap b/crates/biome_html_analyze/tests/specs/nursery/useVueValidVIf/invalid.vue.snap index cf44987ac9a6..d2da671e600a 100644 --- a/crates/biome_html_analyze/tests/specs/nursery/useVueValidVIf/invalid.vue.snap +++ b/crates/biome_html_analyze/tests/specs/nursery/useVueValidVIf/invalid.vue.snap @@ -26,6 +26,8 @@ invalid.vue:2:10 lint/nursery/useVueValidVIf ━━━━━━━━━━━ i Remove the argument. v-if takes a value expression only. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -43,6 +45,8 @@ invalid.vue:3:10 lint/nursery/useVueValidVIf ━━━━━━━━━━━ i Remove the modifier. v-if takes a value expression only. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -60,6 +64,8 @@ invalid.vue:4:6 lint/nursery/useVueValidVIf ━━━━━━━━━━━━ i Provide a boolean expression, e.g. v-if="condition". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -76,6 +82,8 @@ invalid.vue:5:17 lint/nursery/useVueValidVIf ━━━━━━━━━━━ i Place v-if on one element, followed by sibling elements with v-else-if and/or v-else. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -91,5 +99,7 @@ invalid.vue:6:17 lint/nursery/useVueValidVIf ━━━━━━━━━━━ i Place v-if on one element, followed by sibling elements with v-else-if and/or v-else. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_html_analyze/tests/specs/nursery/useVueValidVOn/invalid.vue.snap b/crates/biome_html_analyze/tests/specs/nursery/useVueValidVOn/invalid.vue.snap index bf7a08c5d4c4..bf549cff896d 100644 --- a/crates/biome_html_analyze/tests/specs/nursery/useVueValidVOn/invalid.vue.snap +++ b/crates/biome_html_analyze/tests/specs/nursery/useVueValidVOn/invalid.vue.snap @@ -57,6 +57,8 @@ invalid.vue:5:8 lint/nursery/useVueValidVOn ━━━━━━━━━━━━ i Provide an event name after the colon, e.g. v-on:click="handler". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -73,6 +75,8 @@ invalid.vue:8:8 lint/nursery/useVueValidVOn ━━━━━━━━━━━━ i Provide an event name after the colon, e.g. v-on:click="handler". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -89,6 +93,8 @@ invalid.vue:11:8 lint/nursery/useVueValidVOn ━━━━━━━━━━━ i Add a handler, e.g. v-on:click="onClick". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -105,6 +111,8 @@ invalid.vue:14:8 lint/nursery/useVueValidVOn ━━━━━━━━━━━ i Add a handler, e.g. v-on:click="onClick". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -121,6 +129,8 @@ invalid.vue:17:18 lint/nursery/useVueValidVOn ━━━━━━━━━━━ i Remove or correct the invalid modifier. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Allowed modifiers: - stop @@ -162,6 +172,8 @@ invalid.vue:20:15 lint/nursery/useVueValidVOn ━━━━━━━━━━━ i Remove or correct the invalid modifier. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Allowed modifiers: - stop @@ -203,6 +215,8 @@ invalid.vue:23:17 lint/nursery/useVueValidVOn ━━━━━━━━━━━ i Remove or correct the invalid modifier. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Allowed modifiers: - stop @@ -244,6 +258,8 @@ invalid.vue:26:18 lint/nursery/useVueValidVOn ━━━━━━━━━━━ i Remove or correct the invalid modifier. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Allowed modifiers: - stop @@ -285,6 +301,8 @@ invalid.vue:29:18 lint/nursery/useVueValidVOn ━━━━━━━━━━━ i Remove or correct the invalid modifier. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Allowed modifiers: - stop @@ -326,6 +344,8 @@ invalid.vue:32:22 lint/nursery/useVueValidVOn ━━━━━━━━━━━ i Remove or correct the invalid modifier. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Allowed modifiers: - stop @@ -366,5 +386,7 @@ invalid.vue:35:8 lint/nursery/useVueValidVOn ━━━━━━━━━━━ i Add a handler, e.g. v-on:click="onClick". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_html_analyze/tests/specs/nursery/useVueValidVText/invalid.vue.snap b/crates/biome_html_analyze/tests/specs/nursery/useVueValidVText/invalid.vue.snap index 4e9e81ba38da..88428237aa70 100644 --- a/crates/biome_html_analyze/tests/specs/nursery/useVueValidVText/invalid.vue.snap +++ b/crates/biome_html_analyze/tests/specs/nursery/useVueValidVText/invalid.vue.snap @@ -38,6 +38,8 @@ invalid.vue:3:6 lint/nursery/useVueValidVText ━━━━━━━━━━━ i For example, use v-text="foo" to render the content of the foo variable. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -56,6 +58,8 @@ invalid.vue:4:6 lint/nursery/useVueValidVText ━━━━━━━━━━━ i For example, use v-text="foo" to render the content of the foo variable. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -75,6 +79,8 @@ invalid.vue:5:6 lint/nursery/useVueValidVText ━━━━━━━━━━━ i For example, use v-text="foo" to render the content of the foo variable. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -92,6 +98,8 @@ invalid.vue:6:12 lint/nursery/useVueValidVText ━━━━━━━━━━━ i v-text directives should be used without arguments, like v-text="content". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -109,6 +117,8 @@ invalid.vue:7:12 lint/nursery/useVueValidVText ━━━━━━━━━━━ i v-text directives do not support any modifiers. Remove the modifier. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -126,6 +136,8 @@ invalid.vue:8:12 lint/nursery/useVueValidVText ━━━━━━━━━━━ i v-text directives should be used without arguments, like v-text="content". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -143,6 +155,8 @@ invalid.vue:9:12 lint/nursery/useVueValidVText ━━━━━━━━━━━ i v-text directives do not support any modifiers. Remove the modifier. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -162,6 +176,8 @@ invalid.vue:11:6 lint/nursery/useVueValidVText ━━━━━━━━━━━ i For example, use v-text="foo" to render the content of the foo variable. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -180,6 +196,8 @@ invalid.vue:12:6 lint/nursery/useVueValidVText ━━━━━━━━━━━ i For example, use v-text="foo" to render the content of the foo variable. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -197,6 +215,8 @@ invalid.vue:13:12 lint/nursery/useVueValidVText ━━━━━━━━━━ i v-text directives should be used without arguments, like v-text="content". + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -213,5 +233,7 @@ invalid.vue:14:12 lint/nursery/useVueValidVText ━━━━━━━━━━ i v-text directives do not support any modifiers. Remove the modifier. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noAmbiguousAnchorText/invalid.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noAmbiguousAnchorText/invalid.jsx.snap index 3c9c16cd1f88..3c5e8d9bce26 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noAmbiguousAnchorText/invalid.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noAmbiguousAnchorText/invalid.jsx.snap @@ -122,6 +122,8 @@ invalid.jsx:3:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -138,6 +140,8 @@ invalid.jsx:7:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -154,6 +158,8 @@ invalid.jsx:11:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -170,6 +176,8 @@ invalid.jsx:15:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -186,6 +194,8 @@ invalid.jsx:19:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -202,6 +212,8 @@ invalid.jsx:23:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -218,6 +230,8 @@ invalid.jsx:27:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -234,6 +248,8 @@ invalid.jsx:31:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -250,6 +266,8 @@ invalid.jsx:35:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -266,6 +284,8 @@ invalid.jsx:39:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -282,6 +302,8 @@ invalid.jsx:43:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -298,6 +320,8 @@ invalid.jsx:47:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -314,6 +338,8 @@ invalid.jsx:51:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -330,6 +356,8 @@ invalid.jsx:55:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -346,6 +374,8 @@ invalid.jsx:59:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -362,6 +392,8 @@ invalid.jsx:63:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -378,6 +410,8 @@ invalid.jsx:67:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -394,6 +428,8 @@ invalid.jsx:71:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -410,6 +446,8 @@ invalid.jsx:75:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -426,6 +464,8 @@ invalid.jsx:79:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -442,6 +482,8 @@ invalid.jsx:83:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -458,6 +500,8 @@ invalid.jsx:87:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -474,6 +518,8 @@ invalid.jsx:91:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -490,6 +536,8 @@ invalid.jsx:95:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -506,5 +554,7 @@ invalid.jsx:99:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noAmbiguousAnchorText/words/invalid.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noAmbiguousAnchorText/words/invalid.jsx.snap index 367a62483145..43b986d71c90 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noAmbiguousAnchorText/words/invalid.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noAmbiguousAnchorText/words/invalid.jsx.snap @@ -26,5 +26,7 @@ invalid.jsx:3:9 lint/nursery/noAmbiguousAnchorText ━━━━━━━━━ i Ambiguous anchor descriptions do not provide sufficient context for screen reader users. Provide more context to these users. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noContinue/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noContinue/invalid.js.snap index c049fd46aa0c..53fb0fda5cfc 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noContinue/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noContinue/invalid.js.snap @@ -24,6 +24,8 @@ invalid.js:1:58 lint/nursery/noContinue ━━━━━━━━━━━━━ i The continue statement terminates execution of the statements in the current iteration, when used incorrectly it makes code less testable, less readable and less maintainable. Structured control flow statements such as if should be used instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -40,6 +42,8 @@ invalid.js:2:67 lint/nursery/noContinue ━━━━━━━━━━━━━ i The continue statement terminates execution of the statements in the current iteration, when used incorrectly it makes code less testable, less readable and less maintainable. Structured control flow statements such as if should be used instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -57,6 +61,8 @@ invalid.js:3:57 lint/nursery/noContinue ━━━━━━━━━━━━━ i The continue statement terminates execution of the statements in the current iteration, when used incorrectly it makes code less testable, less readable and less maintainable. Structured control flow statements such as if should be used instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -73,5 +79,7 @@ invalid.js:4:66 lint/nursery/noContinue ━━━━━━━━━━━━━ i The continue statement terminates execution of the statements in the current iteration, when used incorrectly it makes code less testable, less readable and less maintainable. Structured control flow statements such as if should be used instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noDeprecatedImports/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noDeprecatedImports/invalid.js.snap index 8b455f70499c..464bd229377c 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noDeprecatedImports/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noDeprecatedImports/invalid.js.snap @@ -29,6 +29,8 @@ invalid.js:2:10 lint/nursery/noDeprecatedImports ━━━━━━━━━━ i You should probably import a different symbol instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -48,6 +50,8 @@ invalid.js:4:10 lint/nursery/noDeprecatedImports ━━━━━━━━━━ i You should probably import a different symbol instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -66,5 +70,7 @@ invalid.js:6:8 lint/nursery/noDeprecatedImports ━━━━━━━━━━ i You should probably import a different symbol instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noDuplicatedSpreadProps/invalid.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noDuplicatedSpreadProps/invalid.jsx.snap index dcfb22bbf35a..55ac67a84bf7 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noDuplicatedSpreadProps/invalid.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noDuplicatedSpreadProps/invalid.jsx.snap @@ -44,6 +44,8 @@ invalid.jsx:2:9 lint/nursery/noDuplicatedSpreadProps ━━━━━━━━━ i Spreading an expression more than once will lead to unnecessary computations being performed. Reduce spreads of this expression down to 1. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -60,6 +62,8 @@ invalid.jsx:6:9 lint/nursery/noDuplicatedSpreadProps ━━━━━━━━━ i Spreading an expression more than once will lead to unnecessary computations being performed. Reduce spreads of this expression down to 1. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -76,6 +80,8 @@ invalid.jsx:10:9 lint/nursery/noDuplicatedSpreadProps ━━━━━━━━ i Spreading an expression more than once will lead to unnecessary computations being performed. Reduce spreads of this expression down to 1. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -92,6 +98,8 @@ invalid.jsx:14:9 lint/nursery/noDuplicatedSpreadProps ━━━━━━━━ i Spreading an expression more than once will lead to unnecessary computations being performed. Reduce spreads of this expression down to 1. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -108,6 +116,8 @@ invalid.jsx:18:9 lint/nursery/noDuplicatedSpreadProps ━━━━━━━━ i Spreading an expression more than once will lead to unnecessary computations being performed. Reduce spreads of this expression down to 1. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -124,5 +134,7 @@ invalid.jsx:22:9 lint/nursery/noDuplicatedSpreadProps ━━━━━━━━ i Spreading an expression more than once will lead to unnecessary computations being performed. Reduce spreads of this expression down to 1. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/comment.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/comment.js.snap index 7a8e1ae6e953..a729574a9f40 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/comment.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/comment.js.snap @@ -20,5 +20,7 @@ comment.js:2:1 lint/nursery/noEmptySource ━━━━━━━━━━━━ i Empty sources can clutter the codebase and increase cognitive load; deleting empty sources can help reduce it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/directive.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/directive.js.snap index ac8605478ebd..1d18daa552de 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/directive.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/directive.js.snap @@ -20,5 +20,7 @@ directive.js:1:1 lint/nursery/noEmptySource ━━━━━━━━━━━━ i Empty sources can clutter the codebase and increase cognitive load; deleting empty sources can help reduce it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/empty-block-statement.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/empty-block-statement.js.snap index 157cfac315e9..d2d69088eb89 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/empty-block-statement.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/empty-block-statement.js.snap @@ -23,5 +23,7 @@ empty-block-statement.js:1:1 lint/nursery/noEmptySource ━━━━━━━━ i Empty sources can clutter the codebase and increase cognitive load; deleting empty sources can help reduce it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/empty-statement.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/empty-statement.js.snap index 3babc73992c5..f64db29f5566 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/empty-statement.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/empty-statement.js.snap @@ -20,5 +20,7 @@ empty-statement.js:1:1 lint/nursery/noEmptySource ━━━━━━━━━━ i Empty sources can clutter the codebase and increase cognitive load; deleting empty sources can help reduce it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/empty.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/empty.js.snap index 8b28eec34c5a..613e55ecd08f 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/empty.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/empty.js.snap @@ -18,5 +18,7 @@ empty.js:1:1 lint/nursery/noEmptySource ━━━━━━━━━━━━━ i Empty sources can clutter the codebase and increase cognitive load; deleting empty sources can help reduce it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/hashbang.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/hashbang.js.snap index 6a255ed1c8af..e2d663332a4f 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/hashbang.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/hashbang.js.snap @@ -20,5 +20,7 @@ hashbang.js:1:1 lint/nursery/noEmptySource ━━━━━━━━━━━━ i Empty sources can clutter the codebase and increase cognitive load; deleting empty sources can help reduce it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/jsdoc.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/jsdoc.js.snap index b97735a0b734..1acb68e1ab0f 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/jsdoc.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noEmptySource/invalid/jsdoc.js.snap @@ -23,5 +23,7 @@ jsdoc.js:4:1 lint/nursery/noEmptySource ━━━━━━━━━━━━━ i Empty sources can clutter the codebase and increase cognitive load; deleting empty sources can help reduce it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noEqualsToNull/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noEqualsToNull/invalid.js.snap index 7e0b57d606b3..c0b9a6848c2f 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noEqualsToNull/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noEqualsToNull/invalid.js.snap @@ -22,6 +22,8 @@ invalid.js:2:5 lint/nursery/noEqualsToNull FIXABLE ━━━━━━━━━ 3 │ foo != null; 4 │ + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Use === instead. 2 │ foo·===·null; @@ -40,6 +42,8 @@ invalid.js:3:5 lint/nursery/noEqualsToNull FIXABLE ━━━━━━━━━ │ ^^ 4 │ + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Use !== instead. 3 │ foo·!==·null; diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/01_invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/01_invalid.ts.snap index 63d65ceb7131..86df65be839b 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/01_invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/01_invalid.ts.snap @@ -26,6 +26,8 @@ async function floatingArray() { i This happens when an array of Promises is not wrapped with Promise.all() or a similar method, and is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -42,6 +44,8 @@ async function floatingArray() { i This happens when an array of Promises is not wrapped with Promise.all() or a similar method, and is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Wrap in Promise.all() and add await operator. 5 │ → await·Promise.all([1,·2,·3].map((x)·=>·Promise.resolve(x·+·1))); diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/03_invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/03_invalid.ts.snap index 9639ce6f5e8f..e69fa27b7a03 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/03_invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/03_invalid.ts.snap @@ -30,6 +30,8 @@ anotherOne; i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -45,5 +47,7 @@ anotherOne; i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/03b_invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/03b_invalid.ts.snap index 97d8b3ba9b9d..2e5e8144a15a 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/03b_invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/03b_invalid.ts.snap @@ -30,5 +30,7 @@ obj.asyncFunc() i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/04_invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/04_invalid.ts.snap index cdfcf7cf8836..b40f5c0cafa1 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/04_invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/04_invalid.ts.snap @@ -29,5 +29,7 @@ promiseLike(); i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/09_invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/09_invalid.ts.snap index ce677cceba7c..1d2977f10ac4 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/09_invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/09_invalid.ts.snap @@ -27,5 +27,7 @@ sneakyObject1.doSomething(); i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/11_invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/11_invalid.ts.snap index cd3145b3512e..28a996409f66 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/11_invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/11_invalid.ts.snap @@ -27,5 +27,7 @@ sneakyObject2.something; i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/12_invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/12_invalid.ts.snap index 7a960e594880..654f38480623 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/12_invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/12_invalid.ts.snap @@ -22,5 +22,7 @@ result i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/13_invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/13_invalid.ts.snap index be9840d04936..9c4ac8d1c226 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/13_invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/13_invalid.ts.snap @@ -60,6 +60,8 @@ function functionWithParams({ option }: Params) { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -76,6 +78,8 @@ function functionWithParams({ option }: Params) { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -93,6 +97,8 @@ function functionWithParams({ option }: Params) { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -110,6 +116,8 @@ function functionWithParams({ option }: Params) { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -127,6 +135,8 @@ function functionWithParams({ option }: Params) { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -144,6 +154,8 @@ function functionWithParams({ option }: Params) { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -161,6 +173,8 @@ function functionWithParams({ option }: Params) { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -178,6 +192,8 @@ function functionWithParams({ option }: Params) { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -195,6 +211,8 @@ function functionWithParams({ option }: Params) { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -211,6 +229,8 @@ function functionWithParams({ option }: Params) { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -228,6 +248,8 @@ function functionWithParams({ option }: Params) { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -245,6 +267,8 @@ function functionWithParams({ option }: Params) { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -262,6 +286,8 @@ function functionWithParams({ option }: Params) { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -279,6 +305,8 @@ function functionWithParams({ option }: Params) { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -296,6 +324,8 @@ function functionWithParams({ option }: Params) { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -312,6 +342,8 @@ function functionWithParams({ option }: Params) { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -328,5 +360,7 @@ function functionWithParams({ option }: Params) { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/14_invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/14_invalid.ts.snap index 40da3c6db88a..be138d42ec2b 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/14_invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/14_invalid.ts.snap @@ -22,5 +22,7 @@ condition ? Promise.reject("ternary bypass") : null; i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/18_invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/18_invalid.js.snap index e5d06abff19d..284bcc192f84 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/18_invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/18_invalid.js.snap @@ -36,5 +36,7 @@ class Foo { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/19_invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/19_invalid.ts.snap index eed4bb2acb90..f96675ebc42d 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/19_invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/19_invalid.ts.snap @@ -27,5 +27,7 @@ function pattern19() { i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalid.js.snap index ef69f8c47f97..29b0b242fb4a 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalid.js.snap @@ -32,6 +32,8 @@ invalid.js:4:1 lint/nursery/noFloatingPromises ━━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -49,6 +51,8 @@ invalid.js:5:1 lint/nursery/noFloatingPromises ━━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -66,6 +70,8 @@ invalid.js:9:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 9 │ ··await·returnsPromise(); diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalid.ts.snap index cc6cc3f83035..257c6b16c0f7 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalid.ts.snap @@ -371,6 +371,8 @@ invalid.ts:7:1 lint/nursery/noFloatingPromises ━━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -391,6 +393,8 @@ invalid.ts:8:1 lint/nursery/noFloatingPromises ━━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -407,6 +411,8 @@ invalid.ts:13:2 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 13 │ → await·returnsPromise(); @@ -430,6 +436,8 @@ invalid.ts:17:2 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 17 │ → await·returnsPromise() @@ -451,6 +459,8 @@ invalid.ts:24:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 24 │ → → await·returnsPromise(); @@ -472,6 +482,8 @@ invalid.ts:32:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -489,6 +501,8 @@ invalid.ts:38:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -505,6 +519,8 @@ invalid.ts:45:2 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 45 │ → await·returnsPromiseAssignedFunction().then(()·=>·{}); @@ -526,6 +542,8 @@ invalid.ts:53:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -542,6 +560,8 @@ invalid.ts:56:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -559,6 +579,8 @@ invalid.ts:58:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -575,6 +597,8 @@ invalid.ts:59:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -592,6 +616,8 @@ invalid.ts:64:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -609,6 +635,8 @@ invalid.ts:65:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -626,6 +654,8 @@ invalid.ts:70:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -643,6 +673,8 @@ invalid.ts:71:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -660,6 +692,8 @@ invalid.ts:91:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 91 │ → → await·this.returnsPromiseMethod(); @@ -683,6 +717,8 @@ invalid.ts:95:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 95 │ → → await·this.returnsPromiseFromParent() @@ -703,6 +739,8 @@ invalid.ts:101:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 101 │ → → await·this.returnsPromiseFunctionProperty(); @@ -723,6 +761,8 @@ invalid.ts:105:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 105 │ → → await·this.returnsPromiseProperty.then(()·=>·{}).finally(()·=>·{}); @@ -747,6 +787,8 @@ invalid.ts:112:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 112 │ → → await·this.#returnsPromisePrivateMethod() @@ -770,6 +812,8 @@ invalid.ts:125:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 125 │ → → await·this.returnsPromiseFunction() @@ -791,6 +835,8 @@ invalid.ts:128:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 128 │ → → await·this.returnsPromiseArrowFunction(); @@ -815,6 +861,8 @@ invalid.ts:133:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -832,6 +880,8 @@ invalid.ts:137:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -849,6 +899,8 @@ invalid.ts:138:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -866,6 +918,8 @@ invalid.ts:139:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -883,6 +937,8 @@ invalid.ts:154:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 154 │ → → await·this.returnsPromiseMethod(); @@ -906,6 +962,8 @@ invalid.ts:158:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 158 │ → → await·this.returnsPromiseFromParent() @@ -926,6 +984,8 @@ invalid.ts:164:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 164 │ → → await·this.returnsPromiseFunctionProperty(); @@ -946,6 +1006,8 @@ invalid.ts:168:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 168 │ → → await·this.returnsPromiseProperty.then(()·=>·{}).finally(()·=>·{}); @@ -970,6 +1032,8 @@ invalid.ts:175:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 175 │ → → await·this.#returnsPromisePrivateMethod() @@ -993,6 +1057,8 @@ invalid.ts:188:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 188 │ → → await·this.returnsPromiseFunction() @@ -1014,6 +1080,8 @@ invalid.ts:191:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 191 │ → → await·this.returnsPromiseArrowFunction(); @@ -1038,6 +1106,8 @@ invalid.ts:196:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1055,6 +1125,8 @@ invalid.ts:200:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1072,6 +1144,8 @@ invalid.ts:201:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1092,6 +1166,8 @@ invalid.ts:202:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1109,6 +1185,8 @@ invalid.ts:219:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 219 │ → → await·this.returnsPromiseMethod(); @@ -1132,6 +1210,8 @@ invalid.ts:223:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 223 │ → → await·this.returnsPromiseFromParent() @@ -1152,6 +1232,8 @@ invalid.ts:229:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 229 │ → → await·this.returnsPromiseFunctionProperty(); @@ -1172,6 +1254,8 @@ invalid.ts:233:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 233 │ → → await·this.returnsPromiseProperty.then(()·=>·{}).finally(()·=>·{}); @@ -1196,6 +1280,8 @@ invalid.ts:240:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 240 │ → → await·this.#returnsPromisePrivateMethod() @@ -1219,6 +1305,8 @@ invalid.ts:253:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 253 │ → → await·this.returnsPromiseFunction() @@ -1240,6 +1328,8 @@ invalid.ts:256:3 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 256 │ → → await·this.returnsPromiseArrowFunction(); @@ -1265,6 +1355,8 @@ invalid.ts:262:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1282,6 +1374,8 @@ invalid.ts:266:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1299,6 +1393,8 @@ invalid.ts:267:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1319,6 +1415,8 @@ invalid.ts:268:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1339,6 +1437,8 @@ invalid.ts:271:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1355,6 +1455,8 @@ invalid.ts:289:3 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1372,6 +1474,8 @@ invalid.ts:290:3 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1389,6 +1493,8 @@ invalid.ts:291:3 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1406,6 +1512,8 @@ invalid.ts:295:2 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 295 │ → await·invalidTestObject.returnsPromiseArrowFunction(); @@ -1427,6 +1535,8 @@ invalid.ts:296:2 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 296 │ → await·invalidTestObject.returnsPromiseFunction().then(()·=>·{}); @@ -1452,6 +1562,8 @@ invalid.ts:297:2 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 297 │ → await·invalidTestObject @@ -1473,6 +1585,8 @@ invalid.ts:301:2 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 301 │ → await·invalidTestObject["returnsPromiseMethod"](); @@ -1494,6 +1608,8 @@ invalid.ts:309:2 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 309 │ → await·props.returnsPromise().then(()·=>·{}); @@ -1515,6 +1631,8 @@ invalid.ts:314:2 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 314 │ → await·returnsPromise(); @@ -1536,6 +1654,8 @@ invalid.ts:319:2 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 319 │ → await·returnsPromise(); @@ -1557,6 +1677,8 @@ invalid.ts:324:2 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 324 │ → await·props.returnsPromise(); @@ -1582,6 +1704,8 @@ invalid.ts:330:2 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 330 │ → await·rest @@ -1603,6 +1727,8 @@ invalid.ts:336:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1620,6 +1746,8 @@ invalid.ts:338:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1636,6 +1764,8 @@ invalid.ts:339:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1652,5 +1782,7 @@ invalid.ts:349:1 lint/nursery/noFloatingPromises ━━━━━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalidSyncCallbackInsideAsyncFn.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalidSyncCallbackInsideAsyncFn.ts.snap index 361798536997..fe5030ea4e6a 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalidSyncCallbackInsideAsyncFn.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalidSyncCallbackInsideAsyncFn.ts.snap @@ -41,6 +41,8 @@ invalidSyncCallbackInsideAsyncFn.ts:6:13 lint/nursery/noFloatingPromises ━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -58,5 +60,7 @@ invalidSyncCallbackInsideAsyncFn.ts:16:13 lint/nursery/noFloatingPromises ━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/issue8292.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/issue8292.ts.snap index edf3a12dedf7..152f4c5fa585 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/issue8292.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/issue8292.ts.snap @@ -36,6 +36,8 @@ issue8292.ts:13:9 lint/nursery/noFloatingPromises FIXABLE ━━━━━━ i This happens when a Promise is not awaited, lacks a `.catch` or `.then` rejection handler, or is not explicitly ignored using the `void` operator. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Add await operator. 13 │ ········await·this.field.returnsPromise(); diff --git a/crates/biome_js_analyze/tests/specs/nursery/noForIn/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noForIn/invalid.js.snap index 833e30773ff3..d8743f9a6f5c 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noForIn/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noForIn/invalid.js.snap @@ -34,6 +34,8 @@ invalid.js:3:1 lint/nursery/noForIn ━━━━━━━━━━━━━━ i For-in loops are confusing and easy to misuse. You likely want to use a regular loop, for-of loop or forEach instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -53,5 +55,7 @@ invalid.js:7:1 lint/nursery/noForIn ━━━━━━━━━━━━━━ i For-in loops are confusing and easy to misuse. You likely want to use a regular loop, for-of loop or forEach instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noImportCycles/includeTypes.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noImportCycles/includeTypes.ts.snap index 4b8083da25bd..be44fb38e2a7 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noImportCycles/includeTypes.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noImportCycles/includeTypes.ts.snap @@ -24,5 +24,7 @@ includeTypes.ts:2:26 lint/nursery/noImportCycles ━━━━━━━━━━ ... which imports tests/specs/nursery/noImportCycles/includeTypes.ts ... which is the file we're importing from. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noImportCycles/invalidBaz.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noImportCycles/invalidBaz.js.snap index 9618141baa8a..ea2573dba7b3 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noImportCycles/invalidBaz.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noImportCycles/invalidBaz.js.snap @@ -27,5 +27,7 @@ invalidBaz.js:1:21 lint/nursery/noImportCycles ━━━━━━━━━━━ ... which imports tests/specs/nursery/noImportCycles/invalidBaz.js ... which is the file we're importing from. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noImportCycles/invalidFoobar.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noImportCycles/invalidFoobar.js.snap index de4d30881915..20c6c40f0f2c 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noImportCycles/invalidFoobar.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noImportCycles/invalidFoobar.js.snap @@ -31,5 +31,7 @@ invalidFoobar.js:1:21 lint/nursery/noImportCycles ━━━━━━━━━━ ... which imports tests/specs/nursery/noImportCycles/invalidFoobar.js ... which is the file we're importing from. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noIncrementDecrement/allowForLoopAfterthought/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noIncrementDecrement/allowForLoopAfterthought/invalid.js.snap index 4bd6d31f5b20..bcd637e64528 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noIncrementDecrement/allowForLoopAfterthought/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noIncrementDecrement/allowForLoopAfterthought/invalid.js.snap @@ -49,6 +49,8 @@ invalid.js:2:1 lint/nursery/noIncrementDecrement ━━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -65,6 +67,8 @@ invalid.js:5:1 lint/nursery/noIncrementDecrement ━━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -82,6 +86,8 @@ invalid.js:7:29 lint/nursery/noIncrementDecrement ━━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -99,6 +105,8 @@ invalid.js:11:18 lint/nursery/noIncrementDecrement ━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -116,6 +124,8 @@ invalid.js:15:26 lint/nursery/noIncrementDecrement ━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -133,6 +143,8 @@ invalid.js:17:27 lint/nursery/noIncrementDecrement ━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -150,6 +162,8 @@ invalid.js:19:6 lint/nursery/noIncrementDecrement ━━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -167,6 +181,8 @@ invalid.js:21:7 lint/nursery/noIncrementDecrement ━━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -184,6 +200,8 @@ invalid.js:23:10 lint/nursery/noIncrementDecrement ━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -201,6 +219,8 @@ invalid.js:25:13 lint/nursery/noIncrementDecrement ━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -218,6 +238,8 @@ invalid.js:27:16 lint/nursery/noIncrementDecrement ━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -233,5 +255,7 @@ invalid.js:29:16 lint/nursery/noIncrementDecrement ━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noIncrementDecrement/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noIncrementDecrement/invalid.js.snap index 8e6cff03fa16..a005c92b931b 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noIncrementDecrement/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noIncrementDecrement/invalid.js.snap @@ -46,6 +46,8 @@ invalid.js:2:1 lint/nursery/noIncrementDecrement ━━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -62,6 +64,8 @@ invalid.js:5:1 lint/nursery/noIncrementDecrement ━━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -78,6 +82,8 @@ invalid.js:8:1 lint/nursery/noIncrementDecrement ━━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -94,6 +100,8 @@ invalid.js:11:1 lint/nursery/noIncrementDecrement ━━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -111,6 +119,8 @@ invalid.js:13:25 lint/nursery/noIncrementDecrement ━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -128,6 +138,8 @@ invalid.js:20:2 lint/nursery/noIncrementDecrement ━━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -145,5 +157,7 @@ invalid.js:23:25 lint/nursery/noIncrementDecrement ━━━━━━━━━ i The unary ++ and -- operators are subject to automatic semicolon insertion, differences in whitespace can change semantics of source code. Instead use += or -=. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noJsxLiterals/invalid.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noJsxLiterals/invalid.jsx.snap index 0f85c63ca20d..4a604c593fe8 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noJsxLiterals/invalid.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noJsxLiterals/invalid.jsx.snap @@ -44,6 +44,8 @@ invalid.jsx:3:8 lint/nursery/noJsxLiterals ━━━━━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -63,6 +65,8 @@ invalid.jsx:4:4 lint/nursery/noJsxLiterals ━━━━━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -87,6 +91,8 @@ invalid.jsx:6:8 lint/nursery/noJsxLiterals ━━━━━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -106,5 +112,7 @@ invalid.jsx:17:43 lint/nursery/noJsxLiterals ━━━━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noJsxLiterals/invalidAllowedStrings.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noJsxLiterals/invalidAllowedStrings.jsx.snap index 0efade716dca..1e61dea3101b 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noJsxLiterals/invalidAllowedStrings.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noJsxLiterals/invalidAllowedStrings.jsx.snap @@ -38,6 +38,8 @@ invalidAllowedStrings.jsx:4:7 lint/nursery/noJsxLiterals ━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -57,6 +59,8 @@ invalidAllowedStrings.jsx:5:4 lint/nursery/noJsxLiterals ━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -76,5 +80,7 @@ invalidAllowedStrings.jsx:11:43 lint/nursery/noJsxLiterals ━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noJsxLiterals/invalidNoStrings.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noJsxLiterals/invalidNoStrings.jsx.snap index 818f8e6311a4..c55faf4059b1 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noJsxLiterals/invalidNoStrings.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noJsxLiterals/invalidNoStrings.jsx.snap @@ -44,6 +44,8 @@ invalidNoStrings.jsx:3:9 lint/nursery/noJsxLiterals ━━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -63,6 +65,8 @@ invalidNoStrings.jsx:4:4 lint/nursery/noJsxLiterals ━━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -82,6 +86,8 @@ invalidNoStrings.jsx:7:5 lint/nursery/noJsxLiterals ━━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -101,6 +107,8 @@ invalidNoStrings.jsx:8:5 lint/nursery/noJsxLiterals ━━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -120,6 +128,8 @@ invalidNoStrings.jsx:9:5 lint/nursery/noJsxLiterals ━━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -139,6 +149,8 @@ invalidNoStrings.jsx:12:12 lint/nursery/noJsxLiterals ━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -158,6 +170,8 @@ invalidNoStrings.jsx:12:12 lint/nursery/noJsxLiterals ━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -177,6 +191,8 @@ invalidNoStrings.jsx:13:11 lint/nursery/noJsxLiterals ━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -196,6 +212,8 @@ invalidNoStrings.jsx:14:4 lint/nursery/noJsxLiterals ━━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -215,6 +233,8 @@ invalidNoStrings.jsx:16:12 lint/nursery/noJsxLiterals ━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -234,6 +254,8 @@ invalidNoStrings.jsx:17:12 lint/nursery/noJsxLiterals ━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -253,6 +275,8 @@ invalidNoStrings.jsx:17:22 lint/nursery/noJsxLiterals ━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -272,6 +296,8 @@ invalidNoStrings.jsx:18:12 lint/nursery/noJsxLiterals ━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -291,5 +317,7 @@ invalidNoStrings.jsx:19:22 lint/nursery/noJsxLiterals ━━━━━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noJsxLiterals/invalidNoStringsAllowedStrings.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noJsxLiterals/invalidNoStringsAllowedStrings.jsx.snap index 5cf0bcfc2d04..0f977d987522 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noJsxLiterals/invalidNoStringsAllowedStrings.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noJsxLiterals/invalidNoStringsAllowedStrings.jsx.snap @@ -39,6 +39,8 @@ invalidNoStringsAllowedStrings.jsx:4:7 lint/nursery/noJsxLiterals ━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -58,6 +60,8 @@ invalidNoStringsAllowedStrings.jsx:5:8 lint/nursery/noJsxLiterals ━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -77,6 +81,8 @@ invalidNoStringsAllowedStrings.jsx:6:4 lint/nursery/noJsxLiterals ━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -96,5 +102,7 @@ invalidNoStringsAllowedStrings.jsx:12:43 lint/nursery/noJsxLiterals ━━━━ i Consider avoiding hardcoded strings entirely. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noLeakedRender/invalid.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noLeakedRender/invalid.jsx.snap index eba5ab0fde20..e8428ddc47a3 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noLeakedRender/invalid.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noLeakedRender/invalid.jsx.snap @@ -93,6 +93,8 @@ invalid.jsx:6:5 lint/nursery/noLeakedRender ━━━━━━━━━━━━ i Make sure the condition is explicitly boolean.Use !!value, value > 0, or a ternary expression. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -112,6 +114,8 @@ invalid.jsx:7:5 lint/nursery/noLeakedRender ━━━━━━━━━━━━ i Make sure the condition is explicitly boolean.Use !!value, value > 0, or a ternary expression. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -131,6 +135,8 @@ invalid.jsx:8:5 lint/nursery/noLeakedRender ━━━━━━━━━━━━ i Make sure the condition is explicitly boolean.Use !!value, value > 0, or a ternary expression. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -149,6 +155,8 @@ invalid.jsx:14:15 lint/nursery/noLeakedRender ━━━━━━━━━━━ i Make sure the condition is explicitly boolean.Use !!value, value > 0, or a ternary expression. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -167,6 +175,8 @@ invalid.jsx:18:15 lint/nursery/noLeakedRender ━━━━━━━━━━━ i Make sure the condition is explicitly boolean.Use !!value, value > 0, or a ternary expression. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -185,6 +195,8 @@ invalid.jsx:22:15 lint/nursery/noLeakedRender ━━━━━━━━━━━ i Make sure the condition is explicitly boolean.Use !!value, value > 0, or a ternary expression. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -204,6 +216,8 @@ invalid.jsx:27:9 lint/nursery/noLeakedRender ━━━━━━━━━━━ i Make sure the condition is explicitly boolean.Use !!value, value > 0, or a ternary expression. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -222,6 +236,8 @@ invalid.jsx:32:15 lint/nursery/noLeakedRender ━━━━━━━━━━━ i Make sure the condition is explicitly boolean.Use !!value, value > 0, or a ternary expression. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -240,6 +256,8 @@ invalid.jsx:36:15 lint/nursery/noLeakedRender ━━━━━━━━━━━ i Make sure the condition is explicitly boolean.Use !!value, value > 0, or a ternary expression. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -264,6 +282,8 @@ invalid.jsx:42:5 lint/nursery/noLeakedRender ━━━━━━━━━━━ i Make sure the condition is explicitly boolean.Use !!value, value > 0, or a ternary expression. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -282,6 +302,8 @@ invalid.jsx:52:12 lint/nursery/noLeakedRender ━━━━━━━━━━━ i Make sure the condition is explicitly boolean.Use !!value, value > 0, or a ternary expression. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -300,6 +322,8 @@ invalid.jsx:56:15 lint/nursery/noLeakedRender ━━━━━━━━━━━ i Make sure the condition is explicitly boolean.Use !!value, value > 0, or a ternary expression. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -318,6 +342,8 @@ invalid.jsx:60:15 lint/nursery/noLeakedRender ━━━━━━━━━━━ i Make sure the condition is explicitly boolean.Use !!value, value > 0, or a ternary expression. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -336,5 +362,7 @@ invalid.jsx:68:15 lint/nursery/noLeakedRender ━━━━━━━━━━━ i Make sure the condition is explicitly boolean.Use !!value, value > 0, or a ternary expression. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noLeakedRender/issue8288.invalid.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noLeakedRender/issue8288.invalid.jsx.snap index e308e7d6672a..b3ef9da19c01 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noLeakedRender/issue8288.invalid.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noLeakedRender/issue8288.invalid.jsx.snap @@ -32,5 +32,7 @@ issue8288.invalid.jsx:5:19 lint/nursery/noLeakedRender ━━━━━━━━ i Replace with a safe alternate value like an empty string , null or another JSX element. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksConditionalsInvalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksConditionalsInvalid.ts.snap index a4fde0504c31..f84f756022ed 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksConditionalsInvalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksConditionalsInvalid.ts.snap @@ -37,6 +37,8 @@ checksConditionalsInvalid.ts:3:5 lint/nursery/noMisusedPromises ━━━━━ i You may have intended to `await` the Promise instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -56,6 +58,8 @@ checksConditionalsInvalid.ts:7:13 lint/nursery/noMisusedPromises ━━━━━ i You may have intended to `await` the Promise instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -75,6 +79,8 @@ checksConditionalsInvalid.ts:9:18 lint/nursery/noMisusedPromises ━━━━━ i You may have intended to `await` the Promise, but this does not work inside a synchronous callback. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -94,5 +100,7 @@ checksConditionalsInvalid.ts:11:8 lint/nursery/noMisusedPromises ━━━━━ i You may have intended to `await` the Promise instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksSpreadsInvalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksSpreadsInvalid.ts.snap index 7ae0812b8d26..a0f96ab29f87 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksSpreadsInvalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksSpreadsInvalid.ts.snap @@ -31,6 +31,8 @@ checksSpreadsInvalid.ts:3:27 lint/nursery/noMisusedPromises ━━━━━━ i The spread syntax is used to expand an iterable, but a Promise needs to be `await`-ed to take its value. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -47,5 +49,7 @@ checksSpreadsInvalid.ts:9:27 lint/nursery/noMisusedPromises ━━━━━━ i The spread syntax is used to expand an iterable, but a Promise needs to be `await`-ed to take its value. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksVoidReturnInvalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksVoidReturnInvalid.ts.snap index 337e64f6a1fb..20c12d2869d9 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksVoidReturnInvalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noMisusedPromises/checksVoidReturnInvalid.ts.snap @@ -31,6 +31,8 @@ checksVoidReturnInvalid.ts:1:19 lint/nursery/noMisusedPromises ━━━━━ i This may not have the desired result if you expect the Promise to be `await`-ed. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -51,5 +53,7 @@ checksVoidReturnInvalid.ts:5:19 lint/nursery/noMisusedPromises ━━━━━ i This may not have the desired result if you expect the Promise to be `await`-ed. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noMultiAssign/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noMultiAssign/invalid.js.snap index 059d4a68240e..849d39d0c5d7 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noMultiAssign/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noMultiAssign/invalid.js.snap @@ -46,6 +46,8 @@ invalid.js:2:6 lint/nursery/noMultiAssign ━━━━━━━━━━━━ i Split into separate assignments. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -65,6 +67,8 @@ invalid.js:3:6 lint/nursery/noMultiAssign ━━━━━━━━━━━━ i Split into separate assignments. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -84,6 +88,8 @@ invalid.js:4:6 lint/nursery/noMultiAssign ━━━━━━━━━━━━ i Split into separate assignments. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -103,6 +109,8 @@ invalid.js:5:2 lint/nursery/noMultiAssign ━━━━━━━━━━━━ i Split into separate assignments. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -122,6 +130,8 @@ invalid.js:6:2 lint/nursery/noMultiAssign ━━━━━━━━━━━━ i Split into separate assignments. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -144,6 +154,8 @@ invalid.js:7:2 lint/nursery/noMultiAssign ━━━━━━━━━━━━ i Split into separate assignments. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -163,6 +175,8 @@ invalid.js:10:6 lint/nursery/noMultiAssign ━━━━━━━━━━━━ i Split into separate assignments. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -182,6 +196,8 @@ invalid.js:11:6 lint/nursery/noMultiAssign ━━━━━━━━━━━━ i Split into separate assignments. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -201,6 +217,8 @@ invalid.js:12:6 lint/nursery/noMultiAssign ━━━━━━━━━━━━ i Split into separate assignments. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -223,6 +241,8 @@ invalid.js:13:6 lint/nursery/noMultiAssign ━━━━━━━━━━━━ i Split into separate assignments. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -242,6 +262,8 @@ invalid.js:16:2 lint/nursery/noMultiAssign ━━━━━━━━━━━━ i Split into separate assignments. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -261,6 +283,8 @@ invalid.js:17:2 lint/nursery/noMultiAssign ━━━━━━━━━━━━ i Split into separate assignments. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -280,6 +304,8 @@ invalid.js:19:7 lint/nursery/noMultiAssign ━━━━━━━━━━━━ i Split into separate assignments. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -299,6 +325,8 @@ invalid.js:20:11 lint/nursery/noMultiAssign ━━━━━━━━━━━━ i Split into separate assignments. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -318,6 +346,8 @@ invalid.js:21:11 lint/nursery/noMultiAssign ━━━━━━━━━━━━ i Split into separate assignments. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -337,6 +367,8 @@ invalid.js:22:8 lint/nursery/noMultiAssign ━━━━━━━━━━━━ i Split into separate assignments. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -355,5 +387,7 @@ invalid.js:23:12 lint/nursery/noMultiAssign ━━━━━━━━━━━━ i Split into separate assignments. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noMultiStr/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noMultiStr/invalid.js.snap index e02fd144ae11..ee058d1c0da2 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noMultiStr/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noMultiStr/invalid.js.snap @@ -25,5 +25,7 @@ invalid.js:3:2 lint/nursery/noMultiStr ━━━━━━━━━━━━━ │ ^^^^^^^ 5 │ + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noNextAsyncClientComponent/invalid.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noNextAsyncClientComponent/invalid.jsx.snap index c6fbf24d6339..66d1299fb725 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noNextAsyncClientComponent/invalid.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noNextAsyncClientComponent/invalid.jsx.snap @@ -78,6 +78,8 @@ invalid.jsx:3:16 lint/nursery/noNextAsyncClientComponent ━━━━━━━ i Consider using useEffect for async operations inside the component, or remove the "use client" directive if this should be a server component. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -100,6 +102,8 @@ invalid.jsx:7:1 lint/nursery/noNextAsyncClientComponent ━━━━━━━━ i Consider using useEffect for async operations inside the component, or remove the "use client" directive if this should be a server component. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -122,6 +126,8 @@ invalid.jsx:11:7 lint/nursery/noNextAsyncClientComponent ━━━━━━━ i Consider using useEffect for async operations inside the component, or remove the "use client" directive if this should be a server component. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -144,6 +150,8 @@ invalid.jsx:15:7 lint/nursery/noNextAsyncClientComponent ━━━━━━━ i Consider using useEffect for async operations inside the component, or remove the "use client" directive if this should be a server component. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -165,6 +173,8 @@ invalid.jsx:20:1 lint/nursery/noNextAsyncClientComponent ━━━━━━━ i Consider using useEffect for async operations inside the component, or remove the "use client" directive if this should be a server component. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -186,6 +196,8 @@ invalid.jsx:25:1 lint/nursery/noNextAsyncClientComponent ━━━━━━━ i Consider using useEffect for async operations inside the component, or remove the "use client" directive if this should be a server component. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -207,6 +219,8 @@ invalid.jsx:30:3 lint/nursery/noNextAsyncClientComponent ━━━━━━━ i Consider using useEffect for async operations inside the component, or remove the "use client" directive if this should be a server component. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -228,6 +242,8 @@ invalid.jsx:36:3 lint/nursery/noNextAsyncClientComponent ━━━━━━━ i Consider using useEffect for async operations inside the component, or remove the "use client" directive if this should be a server component. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -249,6 +265,8 @@ invalid.jsx:42:3 lint/nursery/noNextAsyncClientComponent ━━━━━━━ i Consider using useEffect for async operations inside the component, or remove the "use client" directive if this should be a server component. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -270,5 +288,7 @@ invalid.jsx:48:3 lint/nursery/noNextAsyncClientComponent ━━━━━━━ i Consider using useEffect for async operations inside the component, or remove the "use client" directive if this should be a server component. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noParametersOnlyUsedInRecursion/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noParametersOnlyUsedInRecursion/invalid.js.snap index 680969ba6bda..c41a5f4a5e42 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noParametersOnlyUsedInRecursion/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noParametersOnlyUsedInRecursion/invalid.js.snap @@ -167,6 +167,8 @@ invalid.js:2:23 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend acc with an underscore. 1 1 │ // Simple case: parameter only used in recursion @@ -196,6 +198,8 @@ invalid.js:8:16 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend b with an underscore. 6 6 │ @@ -226,6 +230,8 @@ invalid.js:8:19 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend c with an underscore. 6 6 │ @@ -256,6 +262,8 @@ invalid.js:14:23 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend acc with an underscore. 12 12 │ @@ -287,6 +295,8 @@ invalid.js:21:14 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend acc with an underscore. 19 19 │ // Method in class @@ -317,6 +327,8 @@ invalid.js:28:23 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend step with an underscore. 26 26 │ @@ -347,6 +359,8 @@ invalid.js:34:21 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend b with an underscore. 32 32 │ @@ -377,6 +391,8 @@ invalid.js:40:20 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend flag with an underscore. 38 38 │ @@ -408,6 +424,8 @@ invalid.js:47:14 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend step with an underscore. 45 45 │ // Object method @@ -438,6 +456,8 @@ invalid.js:54:11 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend acc with an underscore. 52 52 │ @@ -469,6 +489,8 @@ invalid.js:61:11 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend unused with an underscore. 59 59 │ // Separate declaration and assignment with arrow function @@ -499,6 +521,8 @@ invalid.js:67:19 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend acc with an underscore. 65 65 │ @@ -529,6 +553,8 @@ invalid.js:73:18 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend acc with an underscore. 71 71 │ @@ -559,6 +585,8 @@ invalid.js:79:23 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend acc with an underscore. 77 77 │ @@ -589,6 +617,8 @@ invalid.js:85:22 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend acc with an underscore. 83 83 │ @@ -619,6 +649,8 @@ invalid.js:91:30 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend acc with an underscore. 89 89 │ @@ -649,6 +681,8 @@ invalid.js:97:29 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend acc with an underscore. 95 95 │ @@ -679,6 +713,8 @@ invalid.js:103:24 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend flag with an underscore. 101 101 │ @@ -709,6 +745,8 @@ invalid.js:109:26 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend acc with an underscore. 107 107 │ @@ -740,6 +778,8 @@ invalid.js:116:14 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend acc with an underscore. 114 114 │ // Optional chaining in class method @@ -771,6 +811,8 @@ invalid.js:124:14 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend step with an underscore. 122 122 │ // Optional chaining in object method @@ -802,6 +844,8 @@ invalid.js:132:14 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend acc with an underscore. 130 130 │ // Computed member with string literal @@ -833,6 +877,8 @@ invalid.js:140:14 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE ━━ i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend acc with an underscore. 138 138 │ // Optional chaining with computed member diff --git a/crates/biome_js_analyze/tests/specs/nursery/noParametersOnlyUsedInRecursion/invalidWithFix.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noParametersOnlyUsedInRecursion/invalidWithFix.js.snap index 81bf9a1ff2bd..f2be479d8194 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noParametersOnlyUsedInRecursion/invalidWithFix.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noParametersOnlyUsedInRecursion/invalidWithFix.js.snap @@ -42,6 +42,8 @@ invalidWithFix.js:2:23 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend acc with an underscore. 1 1 │ // Simple case with fix @@ -71,6 +73,8 @@ invalidWithFix.js:8:16 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend b with an underscore. 6 6 │ @@ -101,6 +105,8 @@ invalidWithFix.js:8:19 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend c with an underscore. 6 6 │ @@ -132,6 +138,8 @@ invalidWithFix.js:15:14 lint/nursery/noParametersOnlyUsedInRecursion FIXABLE i If the parameter is needed for the recursion to work, consider if the function can be refactored to avoid it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: If this is intentional, prepend acc with an underscore. 13 13 │ // Class method with fix diff --git a/crates/biome_js_analyze/tests/specs/nursery/noProto/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noProto/invalid.js.snap index 8a9707f40784..7ea5653385bd 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noProto/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noProto/invalid.js.snap @@ -27,6 +27,8 @@ invalid.js:1:1 lint/nursery/noProto ━━━━━━━━━━━━━━ i Object.getPrototypeOf() and Object.setPrototypeOf() are modern alternatives that work on all objects and are more performant. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -46,6 +48,8 @@ invalid.js:2:1 lint/nursery/noProto ━━━━━━━━━━━━━━ i Object.getPrototypeOf() and Object.setPrototypeOf() are modern alternatives that work on all objects and are more performant. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -66,6 +70,8 @@ invalid.js:3:11 lint/nursery/noProto ━━━━━━━━━━━━━━ i Object.getPrototypeOf() and Object.setPrototypeOf() are modern alternatives that work on all objects and are more performant. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -85,5 +91,7 @@ invalid.js:4:11 lint/nursery/noProto ━━━━━━━━━━━━━━ i Object.getPrototypeOf() and Object.setPrototypeOf() are modern alternatives that work on all objects and are more performant. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid-named-import.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid-named-import.jsx.snap index ecd69f2e54aa..c105a1c4753b 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid-named-import.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid-named-import.jsx.snap @@ -46,6 +46,8 @@ invalid-named-import.jsx:3:20 lint/nursery/noReactForwardRef FIXABLE ━━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 1 1 │ import { forwardRef, memo } from "react"; @@ -77,6 +79,8 @@ invalid-named-import.jsx:7:20 lint/nursery/noReactForwardRef FIXABLE ━━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 5 5 │ }); @@ -108,6 +112,8 @@ invalid-named-import.jsx:9:20 lint/nursery/noReactForwardRef FIXABLE ━━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 7 7 │ const Component2 = forwardRef((props, ref) => null); @@ -142,6 +148,8 @@ invalid-named-import.jsx:13:20 lint/nursery/noReactForwardRef FIXABLE ━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 11 11 │ }); @@ -175,6 +183,8 @@ invalid-named-import.jsx:17:25 lint/nursery/noReactForwardRef FIXABLE ━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 15 15 │ }); diff --git a/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid-named-import.tsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid-named-import.tsx.snap index 4e730b0fdbe0..ef437430e626 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid-named-import.tsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid-named-import.tsx.snap @@ -52,6 +52,8 @@ invalid-named-import.tsx:7:20 lint/nursery/noReactForwardRef FIXABLE ━━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 5 5 │ } @@ -86,6 +88,8 @@ invalid-named-import.tsx:11:20 lint/nursery/noReactForwardRef FIXABLE ━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 9 9 │ }); @@ -120,6 +124,8 @@ invalid-named-import.tsx:15:20 lint/nursery/noReactForwardRef FIXABLE ━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 13 13 │ }); @@ -154,6 +160,8 @@ invalid-named-import.tsx:19:20 lint/nursery/noReactForwardRef FIXABLE ━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 17 17 │ }); @@ -187,6 +195,8 @@ invalid-named-import.tsx:23:20 lint/nursery/noReactForwardRef FIXABLE ━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 21 21 │ }); diff --git a/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid.js.snap index b9c8795e22af..a59e9e225196 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid.js.snap @@ -42,6 +42,8 @@ invalid.js:3:20 lint/nursery/noReactForwardRef FIXABLE ━━━━━━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 1 1 │ import * as React from "react"; @@ -73,6 +75,8 @@ invalid.js:7:20 lint/nursery/noReactForwardRef FIXABLE ━━━━━━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 5 5 │ }); @@ -104,6 +108,8 @@ invalid.js:9:20 lint/nursery/noReactForwardRef FIXABLE ━━━━━━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 7 7 │ const Component2 = React.forwardRef((props, ref) => null); @@ -137,6 +143,8 @@ invalid.js:13:20 lint/nursery/noReactForwardRef FIXABLE ━━━━━━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 11 11 │ }); diff --git a/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid.jsx.snap index f62e69819734..8b1b9cf1922d 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid.jsx.snap @@ -40,6 +40,8 @@ invalid.jsx:3:20 lint/nursery/noReactForwardRef FIXABLE ━━━━━━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 1 1 │ import * as React from "react"; @@ -74,6 +76,8 @@ invalid.jsx:7:20 lint/nursery/noReactForwardRef FIXABLE ━━━━━━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 5 5 │ }); @@ -107,6 +111,8 @@ invalid.jsx:11:31 lint/nursery/noReactForwardRef FIXABLE ━━━━━━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 9 9 │ }); diff --git a/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid.tsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid.tsx.snap index 3c480eebb372..b1f18e3aaa15 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid.tsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noReactForwardRef/invalid.tsx.snap @@ -52,6 +52,8 @@ invalid.tsx:7:20 lint/nursery/noReactForwardRef FIXABLE ━━━━━━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 5 5 │ } @@ -86,6 +88,8 @@ invalid.tsx:11:20 lint/nursery/noReactForwardRef FIXABLE ━━━━━━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 9 9 │ }); @@ -120,6 +124,8 @@ invalid.tsx:15:20 lint/nursery/noReactForwardRef FIXABLE ━━━━━━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 13 13 │ }); @@ -154,6 +160,8 @@ invalid.tsx:19:20 lint/nursery/noReactForwardRef FIXABLE ━━━━━━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 17 17 │ }); @@ -187,6 +195,8 @@ invalid.tsx:23:20 lint/nursery/noReactForwardRef FIXABLE ━━━━━━━ i Replace the use of forwardRef with passing ref as a prop. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the forwardRef() call and receive the ref as a prop. 21 21 │ }); diff --git a/crates/biome_js_analyze/tests/specs/nursery/noScriptUrl/invalid.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noScriptUrl/invalid.jsx.snap index 6bb1bca295bd..824a7004fd1b 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noScriptUrl/invalid.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noScriptUrl/invalid.jsx.snap @@ -1,6 +1,5 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -assertion_line: 151 expression: invalid.jsx --- # Input @@ -40,6 +39,8 @@ invalid.jsx:3:8 lint/nursery/noScriptUrl ━━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -59,6 +60,8 @@ invalid.jsx:5:8 lint/nursery/noScriptUrl ━━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -78,6 +81,8 @@ invalid.jsx:7:8 lint/nursery/noScriptUrl ━━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -97,6 +102,8 @@ invalid.jsx:9:8 lint/nursery/noScriptUrl ━━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -116,6 +123,8 @@ invalid.jsx:11:8 lint/nursery/noScriptUrl ━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -135,6 +144,8 @@ invalid.jsx:13:34 lint/nursery/noScriptUrl ━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -153,5 +164,7 @@ invalid.jsx:15:34 lint/nursery/noScriptUrl ━━━━━━━━━━━━ i Consider using regular URLs, or if you need to handle click events, use event handlers instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-01.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-01.js.snap index 4c74dad09c60..7b1d4512d826 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-01.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-01.js.snap @@ -26,5 +26,7 @@ invalid-01.js:1:44 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-02.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-02.js.snap index af2b6b40f804..d1c25c0feb50 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-02.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-02.js.snap @@ -26,5 +26,7 @@ invalid-02.js:1:38 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-03.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-03.js.snap index 3269c6cf195a..d680bedbfdb0 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-03.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-03.js.snap @@ -26,5 +26,7 @@ invalid-03.js:1:43 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-04.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-04.js.snap index 23bcebb754dd..ec26fbab0520 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-04.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-04.js.snap @@ -26,5 +26,7 @@ invalid-04.js:1:23 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-05.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-05.js.snap index 5f03fc74db78..136fc421801d 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-05.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-05.js.snap @@ -26,5 +26,7 @@ invalid-05.js:1:29 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-06.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-06.js.snap index b500406ca12b..f1ad91b28441 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-06.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-06.js.snap @@ -26,5 +26,7 @@ invalid-06.js:1:29 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-07.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-07.js.snap index 01de83dd163a..76387a9a2d3f 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-07.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-07.js.snap @@ -26,6 +26,8 @@ invalid-07.js:1:29 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -46,5 +48,7 @@ invalid-07.js:1:39 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-08.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-08.js.snap index 9a0336dd0f07..fd276909a66b 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-08.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-08.js.snap @@ -26,5 +26,7 @@ invalid-08.js:1:18 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-10.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-10.js.snap index e2825e0c6fc4..9bb18d3e32df 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-10.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-10.js.snap @@ -26,5 +26,7 @@ invalid-10.js:1:7 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-11.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-11.js.snap index 0f0236e8af31..d4d88d39d24c 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-11.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-11.js.snap @@ -26,5 +26,7 @@ invalid-11.js:1:9 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-12.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-12.js.snap index ce5176f98e0d..bc4393055b46 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-12.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-12.js.snap @@ -26,5 +26,7 @@ invalid-12.js:1:22 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-13.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-13.js.snap index 73b044aec413..6b88e7be13a5 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-13.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-13.js.snap @@ -26,5 +26,7 @@ invalid-13.js:1:22 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-14.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-14.js.snap index 3ad5c2036b26..c9a25d2e9f41 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-14.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-14.js.snap @@ -26,5 +26,7 @@ invalid-14.js:1:14 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-15.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-15.js.snap index cdf5221c1854..9adadb8b7c68 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-15.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-15.js.snap @@ -26,5 +26,7 @@ invalid-15.js:1:26 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-16.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-16.js.snap index 19406bff3b50..c132a5c3e70d 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-16.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-16.js.snap @@ -26,5 +26,7 @@ invalid-16.js:1:23 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-17.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-17.js.snap index c71340121e45..16b387f6b5c7 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-17.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-17.js.snap @@ -26,5 +26,7 @@ invalid-17.js:1:27 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-18.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-18.js.snap index 2f44ab1043e0..dd7681293ed6 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-18.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-18.js.snap @@ -26,5 +26,7 @@ invalid-18.js:1:24 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-19.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-19.js.snap index 3f9ed835c3ec..74cabbaeba36 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-19.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-19.js.snap @@ -26,5 +26,7 @@ invalid-19.js:1:32 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-20.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-20.js.snap index a30ad252ed75..95e96d3d066f 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-20.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-20.js.snap @@ -26,5 +26,7 @@ invalid-20.js:1:45 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-21.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-21.js.snap index 8d74ae6e8a23..117289c42882 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-21.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-21.js.snap @@ -26,5 +26,7 @@ invalid-21.js:1:42 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-22.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-22.js.snap index 6c237ec8be31..00aaef24c201 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-22.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-22.js.snap @@ -26,5 +26,7 @@ invalid-22.js:1:46 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-23.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-23.js.snap index 8c0726656ef8..14ce7d2a52d4 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-23.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-23.js.snap @@ -26,5 +26,7 @@ invalid-23.js:1:43 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-24.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-24.js.snap index 1feb1e36f6ac..361d57f09e33 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-24.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-24.js.snap @@ -26,5 +26,7 @@ invalid-24.js:1:53 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-25.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-25.js.snap index 089a1c93e1d8..8b5e7d3e056e 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-25.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-25.js.snap @@ -26,5 +26,7 @@ invalid-25.js:1:31 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-26.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-26.js.snap index 293c08814883..7284eb6dc354 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-26.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-26.js.snap @@ -26,6 +26,8 @@ invalid-26.js:1:26 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -46,5 +48,7 @@ invalid-26.js:1:40 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-27.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-27.js.snap index b3789015cf2c..89139255d87c 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-27.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-27.js.snap @@ -26,5 +26,7 @@ invalid-27.js:1:31 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-28.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-28.js.snap index 3c16b31fa3ff..36f94fb97013 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-28.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-28.js.snap @@ -26,5 +26,7 @@ invalid-28.js:1:33 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-29.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-29.js.snap index 85b896d04757..2e5b02ef7afe 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-29.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-29.js.snap @@ -26,5 +26,7 @@ invalid-29.js:1:24 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-30.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-30.js.snap index 9f2848ca7bd3..cbe310771e5d 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-30.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-30.js.snap @@ -26,5 +26,7 @@ invalid-30.js:1:24 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-31.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-31.js.snap index c86edfbed8bb..33c6a0979dbd 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-31.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-31.js.snap @@ -26,5 +26,7 @@ invalid-31.js:1:31 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-32.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-32.js.snap index a532c2756a14..84926ad0e90b 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-32.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/eslint/invalid-32.js.snap @@ -26,5 +26,7 @@ invalid-32.js:1:50 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/invalid.js.snap index 7caaf8aa9e61..102a43abd1e7 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/invalid.js.snap @@ -50,6 +50,8 @@ invalid.js:3:11 lint/nursery/noShadow ━━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -73,6 +75,8 @@ invalid.js:7:11 lint/nursery/noShadow ━━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -97,6 +101,8 @@ invalid.js:10:12 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -120,6 +126,8 @@ invalid.js:16:11 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -146,6 +154,8 @@ invalid.js:19:20 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -170,5 +180,7 @@ invalid.js:21:33 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-01.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-01.ts.snap index 81be43e294f1..aa067a5a9856 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-01.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-01.ts.snap @@ -33,5 +33,7 @@ invalid-01.ts:3:7 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-02.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-02.ts.snap index 8cdcba8049e5..31a828ad38c0 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-02.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-02.ts.snap @@ -29,5 +29,7 @@ invalid-02.ts:2:14 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-03.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-03.ts.snap index c41441d4cbe4..c1f1c74d0bfe 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-03.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-03.ts.snap @@ -31,5 +31,7 @@ invalid-03.ts:2:20 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-04.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-04.ts.snap index ea349836ab9b..177035b23839 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-04.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-04.ts.snap @@ -35,5 +35,7 @@ invalid-04.ts:5:14 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-05.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-05.ts.snap index dfd6d0416dff..61114639e2f3 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-05.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-05.ts.snap @@ -33,5 +33,7 @@ invalid-05.ts:3:8 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-06.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-06.ts.snap index 0cd743c3cf13..1d3a259d1309 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-06.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-06.ts.snap @@ -29,5 +29,7 @@ invalid-06.ts:2:12 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-07.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-07.ts.snap index 551c003735bf..a33843573e16 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-07.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-07.ts.snap @@ -33,5 +33,7 @@ invalid-07.ts:4:4 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-08.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-08.ts.snap index acb3d3aaa8e3..e331f2eb7508 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-08.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noShadow/typescript-eslint/invalid-08.ts.snap @@ -29,5 +29,7 @@ invalid-08.ts:2:18 lint/nursery/noShadow ━━━━━━━━━━━━━ i Consider renaming this variable. It's easy to confuse the origin of variables if they share the same name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noSyncScripts/invalid.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noSyncScripts/invalid.jsx.snap index d997fa7c8d5f..06628397cdf8 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noSyncScripts/invalid.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noSyncScripts/invalid.jsx.snap @@ -28,6 +28,8 @@ invalid.jsx:2:9 lint/nursery/noSyncScripts ━━━━━━━━━━━━ i Synchronous scripts can impact your webpage performance. Add the "async" or "defer" attribute. If using Next.js, consider the Script component instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -44,5 +46,7 @@ invalid.jsx:6:9 lint/nursery/noSyncScripts ━━━━━━━━━━━━ i Synchronous scripts can impact your webpage performance. Add the "async" or "defer" attribute. If using Next.js, consider the Script component instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noTernary/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noTernary/invalid.js.snap index 0a210f9b3b21..7d00b1a52a60 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noTernary/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noTernary/invalid.js.snap @@ -28,6 +28,8 @@ invalid.js:2:13 lint/nursery/noTernary ━━━━━━━━━━━━━ i Ternary operators can lead to unclear code. Use if-else statement instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -44,5 +46,7 @@ invalid.js:5:9 lint/nursery/noTernary ━━━━━━━━━━━━━━ i Ternary operators can lead to unclear code. Use if-else statement instead. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noUndeclaredEnvVars/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noUndeclaredEnvVars/invalid.js.snap index 91dc2130b956..73e7dea63a8f 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noUndeclaredEnvVars/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noUndeclaredEnvVars/invalid.js.snap @@ -28,6 +28,8 @@ invalid.js:4:21 lint/nursery/noUndeclaredEnvVars ━━━━━━━━━━ 5 │ const anotherVar = process.env.ANOTHER_UNDECLARED_VAR; 6 │ const acmeSecret = process.env.ACME_SECRET; + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -43,6 +45,8 @@ invalid.js:5:20 lint/nursery/noUndeclaredEnvVars ━━━━━━━━━━ 6 │ const acmeSecret = process.env.ACME_SECRET; 7 │ + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -58,6 +62,8 @@ invalid.js:6:20 lint/nursery/noUndeclaredEnvVars ━━━━━━━━━━ 7 │ 8 │ // Also invalid with import.meta.env + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -71,5 +77,7 @@ invalid.js:9:23 lint/nursery/noUndeclaredEnvVars ━━━━━━━━━━ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10 │ + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noUndeclaredEnvVars/invalidWithNegation.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noUndeclaredEnvVars/invalidWithNegation.js.snap index ad11c11940e0..a2d7c62d746a 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noUndeclaredEnvVars/invalidWithNegation.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noUndeclaredEnvVars/invalidWithNegation.js.snap @@ -36,6 +36,8 @@ invalidWithNegation.js:4:20 lint/nursery/noUndeclaredEnvVars ━━━━━━ 5 │ 6 │ // ACME_TOKEN is excluded via "!ACME_*" wildcard negation + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -50,6 +52,8 @@ invalidWithNegation.js:7:19 lint/nursery/noUndeclaredEnvVars ━━━━━━ 8 │ const acmeOther = process.env.ACME_OTHER; 9 │ + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -65,6 +69,8 @@ invalidWithNegation.js:8:19 lint/nursery/noUndeclaredEnvVars ━━━━━━ 9 │ 10 │ // INTERNAL_TOKEN is excluded via "!INTERNAL_TOKEN" negation + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -79,5 +85,7 @@ invalidWithNegation.js:11:23 lint/nursery/noUndeclaredEnvVars ━━━━━━ 12 │ 13 │ // These should still be valid (not excluded by negation) + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noUndeclaredEnvVars/invalidWithTurboJson.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noUndeclaredEnvVars/invalidWithTurboJson.js.snap index da1e05fe3ea7..712cc9dd725c 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noUndeclaredEnvVars/invalidWithTurboJson.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noUndeclaredEnvVars/invalidWithTurboJson.js.snap @@ -30,6 +30,8 @@ invalidWithTurboJson.js:4:23 lint/nursery/noUndeclaredEnvVars ━━━━━━ 5 │ const anotherUndeclared = process.env.ANOTHER_UNDECLARED; 6 │ + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -45,6 +47,8 @@ invalidWithTurboJson.js:5:27 lint/nursery/noUndeclaredEnvVars ━━━━━━ 6 │ 7 │ // This doesn't match the FOO_* pattern (it's BAR_*) + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -59,6 +63,8 @@ invalidWithTurboJson.js:8:17 lint/nursery/noUndeclaredEnvVars ━━━━━━ 9 │ 10 │ // Also invalid with import.meta.env + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -72,5 +78,7 @@ invalidWithTurboJson.js:11:24 lint/nursery/noUndeclaredEnvVars ━━━━━ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12 │ + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noUnknownAttribute/invalid.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noUnknownAttribute/invalid.jsx.snap index f9e866cad575..4bc0755b33dd 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noUnknownAttribute/invalid.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noUnknownAttribute/invalid.jsx.snap @@ -76,6 +76,8 @@ invalid.jsx:2:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Check the spelling or consider using a valid data-* attribute for custom properties. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -95,6 +97,8 @@ invalid.jsx:3:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Check the spelling or consider using a valid data-* attribute for custom properties. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -114,6 +118,8 @@ invalid.jsx:4:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Check the spelling or consider using a valid data-* attribute for custom properties. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -133,6 +139,8 @@ invalid.jsx:5:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Check the spelling or consider using a valid data-* attribute for custom properties. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -152,6 +160,8 @@ invalid.jsx:6:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Check the spelling or consider using a valid data-* attribute for custom properties. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -171,6 +181,8 @@ invalid.jsx:7:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Use 'className' instead of 'class' for React components. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -190,6 +202,8 @@ invalid.jsx:8:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Use 'htmlFor' instead of 'for' for React components. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -209,6 +223,8 @@ invalid.jsx:9:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Use 'acceptCharset' instead of 'accept-charset' for React components. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -228,6 +244,8 @@ invalid.jsx:10:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Use 'httpEquiv' instead of 'http-equiv' for React components. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -247,6 +265,8 @@ invalid.jsx:11:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Use 'accessKey' instead of 'accesskey' for React components. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -266,6 +286,8 @@ invalid.jsx:12:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Use 'onClick' instead of 'onclick' for React components. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -285,6 +307,8 @@ invalid.jsx:13:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Use 'onMouseDown' instead of 'onmousedown' for React components. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -304,6 +328,8 @@ invalid.jsx:14:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Use 'onMouseDown' instead of 'onMousedown' for React components. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -323,6 +349,8 @@ invalid.jsx:15:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Use 'xlinkHref' instead of 'xlink:href' for React components. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -342,6 +370,8 @@ invalid.jsx:16:8 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Use 'clipPath' instead of 'clip-path' for React components. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -361,6 +391,8 @@ invalid.jsx:17:10 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Use 'crossOrigin' instead of 'crossorigin' for React components. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -380,6 +412,8 @@ invalid.jsx:17:22 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Use 'noModule' instead of 'nomodule' for React components. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -399,6 +433,8 @@ invalid.jsx:18:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Use 'crossOrigin' instead of 'crossorigin' for React components. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -418,6 +454,8 @@ invalid.jsx:19:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: script,img,video,audio,link,image + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -437,6 +475,8 @@ invalid.jsx:20:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: link + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -456,6 +496,8 @@ invalid.jsx:22:3 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: audio,video + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -475,6 +517,8 @@ invalid.jsx:23:3 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: audio,video + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -494,6 +538,8 @@ invalid.jsx:24:3 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: audio,video + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -513,6 +559,8 @@ invalid.jsx:25:3 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: audio,video + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -532,6 +580,8 @@ invalid.jsx:26:3 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: audio,video + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -551,6 +601,8 @@ invalid.jsx:27:3 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: audio,video,img,link,source,script,picture,iframe + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -570,6 +622,8 @@ invalid.jsx:29:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: script,img,link,picture,iframe,object,source + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -589,6 +643,8 @@ invalid.jsx:30:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: altGlyph,circle,ellipse,g,line,marker,mask,path,polygon,polyline,rect,svg,symbol,text,textPath,tref,tspan,use,animate,animateColor,animateMotion,animateTransform,set + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -608,6 +664,8 @@ invalid.jsx:32:3 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: audio,video + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -627,6 +685,8 @@ invalid.jsx:33:3 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: audio,video + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -646,6 +706,8 @@ invalid.jsx:34:3 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: audio,video + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -665,6 +727,8 @@ invalid.jsx:36:3 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: video + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -684,6 +748,8 @@ invalid.jsx:37:3 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: iframe,video + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -703,6 +769,8 @@ invalid.jsx:39:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: a,area + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -722,6 +790,8 @@ invalid.jsx:40:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: link + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -741,6 +811,8 @@ invalid.jsx:41:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: link + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -760,6 +832,8 @@ invalid.jsx:42:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Check the spelling or consider using a valid data-* attribute for custom properties. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -779,6 +853,8 @@ invalid.jsx:43:48 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Check the spelling or consider using a valid data-* attribute for custom properties. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -798,6 +874,8 @@ invalid.jsx:44:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: th,td + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -817,6 +895,8 @@ invalid.jsx:45:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: input + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -836,6 +916,8 @@ invalid.jsx:46:7 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i This attribute is only allowed on: input + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -855,5 +937,7 @@ invalid.jsx:49:3 lint/nursery/noUnknownAttribute ━━━━━━━━━━ i Check the spelling or consider using a valid data-* attribute for custom properties. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noUnnecessaryConditions/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noUnnecessaryConditions/invalid.js.snap index c1fc2ab818f8..e674532643a4 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noUnnecessaryConditions/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noUnnecessaryConditions/invalid.js.snap @@ -168,6 +168,8 @@ invalid.js:4:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -189,6 +191,8 @@ invalid.js:8:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -210,6 +214,8 @@ invalid.js:12:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -231,6 +237,8 @@ invalid.js:16:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -252,6 +260,8 @@ invalid.js:20:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -272,6 +282,8 @@ invalid.js:25:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -293,6 +305,8 @@ invalid.js:29:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -314,6 +328,8 @@ invalid.js:33:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -335,6 +351,8 @@ invalid.js:37:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -356,6 +374,8 @@ invalid.js:41:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -377,6 +397,8 @@ invalid.js:45:8 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -397,6 +419,8 @@ invalid.js:51:17 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -417,6 +441,8 @@ invalid.js:54:17 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -437,6 +463,8 @@ invalid.js:57:17 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -458,6 +486,8 @@ invalid.js:58:17 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -478,6 +508,8 @@ invalid.js:61:15 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -499,6 +531,8 @@ invalid.js:62:15 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -520,6 +554,8 @@ invalid.js:63:15 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -541,6 +577,8 @@ invalid.js:64:15 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -562,6 +600,8 @@ invalid.js:65:15 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -583,6 +623,8 @@ invalid.js:66:15 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -603,6 +645,8 @@ invalid.js:69:8 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -624,6 +668,8 @@ invalid.js:74:8 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -645,6 +691,8 @@ invalid.js:81:10 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -665,6 +713,8 @@ invalid.js:84:8 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -686,6 +736,8 @@ invalid.js:88:8 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -712,6 +764,8 @@ invalid.js:93:18 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -740,6 +794,8 @@ invalid.js:94:18 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -768,6 +824,8 @@ invalid.js:95:18 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -788,6 +846,8 @@ invalid.js:98:16 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -809,6 +869,8 @@ invalid.js:99:16 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -837,6 +899,8 @@ invalid.js:100:16 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -863,6 +927,8 @@ invalid.js:104:19 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -891,6 +957,8 @@ invalid.js:105:19 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -912,6 +980,8 @@ invalid.js:109:7 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -932,6 +1002,8 @@ invalid.js:113:10 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -952,6 +1024,8 @@ invalid.js:117:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -973,6 +1047,8 @@ invalid.js:118:7 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -993,6 +1069,8 @@ invalid.js:124:9 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1014,6 +1092,8 @@ invalid.js:135:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1035,5 +1115,7 @@ invalid.js:141:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noUnnecessaryConditions/invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noUnnecessaryConditions/invalid.ts.snap index ee6aad25b012..ae5f33877305 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noUnnecessaryConditions/invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noUnnecessaryConditions/invalid.ts.snap @@ -166,6 +166,8 @@ invalid.ts:5:7 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -187,6 +189,8 @@ invalid.ts:12:7 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -207,6 +211,8 @@ invalid.ts:34:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -228,6 +234,8 @@ invalid.ts:38:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -249,6 +257,8 @@ invalid.ts:42:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -270,6 +280,8 @@ invalid.ts:46:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -291,6 +303,8 @@ invalid.ts:50:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -311,6 +325,8 @@ invalid.ts:55:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -332,6 +348,8 @@ invalid.ts:59:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -353,6 +371,8 @@ invalid.ts:63:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -374,6 +394,8 @@ invalid.ts:67:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -395,6 +417,8 @@ invalid.ts:71:5 lint/nursery/noUnnecessaryConditions ━━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -416,6 +440,8 @@ invalid.ts:86:10 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -437,6 +463,8 @@ invalid.ts:91:10 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -457,6 +485,8 @@ invalid.ts:95:17 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -478,6 +508,8 @@ invalid.ts:96:17 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -498,6 +530,8 @@ invalid.ts:99:15 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -519,6 +553,8 @@ invalid.ts:100:15 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -540,6 +576,8 @@ invalid.ts:101:15 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -561,6 +599,8 @@ invalid.ts:102:15 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -581,6 +621,8 @@ invalid.ts:105:8 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -602,6 +644,8 @@ invalid.ts:110:8 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -623,6 +667,8 @@ invalid.ts:117:10 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -643,6 +689,8 @@ invalid.ts:120:8 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -664,6 +712,8 @@ invalid.ts:124:8 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -684,6 +734,8 @@ invalid.ts:139:16 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -704,6 +756,8 @@ invalid.ts:140:16 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -728,5 +782,7 @@ invalid.ts:141:16 lint/nursery/noUnnecessaryConditions ━━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/6611 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noUnresolvedImports/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noUnresolvedImports/invalid.js.snap index f030954f1e9a..c0b65ae9068f 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noUnresolvedImports/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noUnresolvedImports/invalid.js.snap @@ -23,6 +23,8 @@ invalid.js:1:8 lint/nursery/noUnresolvedImports ━━━━━━━━━━ i Make sure that the path is correct and that you're importing the right symbol. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -39,6 +41,8 @@ invalid.js:2:10 lint/nursery/noUnresolvedImports ━━━━━━━━━━ i Make sure that the path is correct and that you're importing the right symbol. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -55,5 +59,7 @@ invalid.js:3:23 lint/nursery/noUnresolvedImports ━━━━━━━━━━ i Make sure that the path exists and is readable. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noUnusedExpressions/invalid.tsx.snap b/crates/biome_js_analyze/tests/specs/nursery/noUnusedExpressions/invalid.tsx.snap index ec8492ce4221..81763f81ed5e 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noUnusedExpressions/invalid.tsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noUnusedExpressions/invalid.tsx.snap @@ -84,6 +84,8 @@ invalid.tsx:5:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -101,6 +103,8 @@ invalid.tsx:7:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -118,6 +122,8 @@ invalid.tsx:9:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -135,6 +141,8 @@ invalid.tsx:11:2 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -152,6 +160,8 @@ invalid.tsx:13:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -169,6 +179,8 @@ invalid.tsx:15:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -186,6 +198,8 @@ invalid.tsx:17:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -203,6 +217,8 @@ invalid.tsx:19:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -220,6 +236,8 @@ invalid.tsx:21:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -237,6 +255,8 @@ invalid.tsx:23:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -254,6 +274,8 @@ invalid.tsx:25:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -271,6 +293,8 @@ invalid.tsx:27:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -288,6 +312,8 @@ invalid.tsx:29:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -305,6 +331,8 @@ invalid.tsx:31:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -322,6 +350,8 @@ invalid.tsx:33:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -339,6 +369,8 @@ invalid.tsx:35:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -356,6 +388,8 @@ invalid.tsx:37:39 lint/nursery/noUnusedExpressions ━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -373,6 +407,8 @@ invalid.tsx:39:10 lint/nursery/noUnusedExpressions ━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -390,6 +426,8 @@ invalid.tsx:41:34 lint/nursery/noUnusedExpressions ━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -407,6 +445,8 @@ invalid.tsx:43:35 lint/nursery/noUnusedExpressions ━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -424,6 +464,8 @@ invalid.tsx:45:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -441,6 +483,8 @@ invalid.tsx:47:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -458,6 +502,8 @@ invalid.tsx:49:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -475,6 +521,8 @@ invalid.tsx:51:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -492,6 +540,8 @@ invalid.tsx:53:1 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -509,6 +559,8 @@ invalid.tsx:55:20 lint/nursery/noUnusedExpressions ━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -526,6 +578,8 @@ invalid.tsx:59:9 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -543,5 +597,7 @@ invalid.tsx:60:9 lint/nursery/noUnusedExpressions ━━━━━━━━━━ i This expression may be unintentionally unused or it might be a function that you forgot to call. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noUselessCatchBinding/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noUselessCatchBinding/invalid.js.snap index d405087d212b..68c80d56a67c 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noUselessCatchBinding/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noUselessCatchBinding/invalid.js.snap @@ -1,6 +1,5 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -assertion_line: 152 expression: invalid.js --- # Input @@ -51,6 +50,8 @@ invalid.js:3:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 3 │ try·{·/*·...·*/·}·catch·(unused)·{·} @@ -71,6 +72,8 @@ invalid.js:5:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 5 │ try·{·/*·...·*/·}·catch·(_unused)·{·} @@ -90,6 +93,8 @@ invalid.js:8:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 8 │ try·{·/*·...·*/·}·catch·({·unused·})·{·} @@ -111,6 +116,8 @@ invalid.js:10:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 10 │ try·{·/*·...·*/·}·catch·({·_unused·})·{·} @@ -131,6 +138,8 @@ invalid.js:12:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 12 │ try·{·/*·...·*/·}·catch·({·unused,·_unused·})·{·} @@ -150,6 +159,8 @@ invalid.js:15:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 15 │ try·{·/*·...·*/·}·catch·(/*·leading·inner·*/·unused·/*·trailing·inner·*/)·{·} @@ -171,6 +182,8 @@ invalid.js:17:45 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 15 15 │ try { /* ... */ } catch (/* leading inner */ unused /* trailing inner */) { } @@ -197,6 +210,8 @@ invalid.js:19:45 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 17 17 │ try { /* ... */ } catch /* leading outer */ (unused) /* trailing outer */ { } @@ -222,6 +237,8 @@ invalid.js:21:45 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 19 19 │ try { /* ... */ } catch /* leading outer */ (/* leading inner */ unused /* trailing inner */) /* trailing outer */ { } @@ -246,6 +263,8 @@ invalid.js:24:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 24 │ try·{·/*·...·*/·}·catch·({·used:·alias·})·{·} @@ -267,6 +286,8 @@ invalid.js:26:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 26 │ try·{·/*·...·*/·}·catch·({·nested:·{·unused·}·})·{·} @@ -287,6 +308,8 @@ invalid.js:28:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 28 │ try·{·/*·...·*/·}·catch·({·...rest·})·{·} diff --git a/crates/biome_js_analyze/tests/specs/nursery/noUselessCatchBinding/invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noUselessCatchBinding/invalid.ts.snap index 7633cfb8b587..7ff259a17cc5 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noUselessCatchBinding/invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noUselessCatchBinding/invalid.ts.snap @@ -1,6 +1,5 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -assertion_line: 152 expression: invalid.ts --- # Input @@ -51,6 +50,8 @@ invalid.ts:3:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 3 │ try·{·/*·...·*/·}·catch·(unused:·any)·{·} @@ -71,6 +72,8 @@ invalid.ts:5:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 5 │ try·{·/*·...·*/·}·catch·(_unused:·any)·{·} @@ -90,6 +93,8 @@ invalid.ts:8:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 8 │ try·{·/*·...·*/·}·catch·({·unused·}:·any)·{·} @@ -111,6 +116,8 @@ invalid.ts:10:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 10 │ try·{·/*·...·*/·}·catch·({·_unused·}:·any)·{·} @@ -131,6 +138,8 @@ invalid.ts:12:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 12 │ try·{·/*·...·*/·}·catch·({·unused,·_unused·}:·any)·{·} @@ -150,6 +159,8 @@ invalid.ts:15:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 15 │ try·{·/*·...·*/·}·catch·(/*·leading·inner·*/·unused:·any·/*·trailing·inner·*/)·{·} @@ -171,6 +182,8 @@ invalid.ts:17:45 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 15 15 │ try { /* ... */ } catch (/* leading inner */ unused: any /* trailing inner */) { } @@ -197,6 +210,8 @@ invalid.ts:19:45 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 17 17 │ try { /* ... */ } catch /* leading outer */ (unused: any) /* trailing outer */ { } @@ -222,6 +237,8 @@ invalid.ts:21:45 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 19 19 │ try { /* ... */ } catch /* leading outer */ (/* leading inner */ unused: any /* trailing inner */) /* trailing outer */ { } @@ -246,6 +263,8 @@ invalid.ts:24:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 24 │ try·{·/*·...·*/·}·catch·({·used:·alias·}:·any)·{·} @@ -267,6 +286,8 @@ invalid.ts:26:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 26 │ try·{·/*·...·*/·}·catch·({·nested:·{·unused·}·}:·any)·{·} @@ -287,6 +308,8 @@ invalid.ts:28:25 lint/nursery/noUselessCatchBinding FIXABLE ━━━━━━ i Since ECMAScript 2019, catch bindings are optional; you can omit the catch binding if you don't need it. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Remove the catch binding. 28 │ try·{·/*·...·*/·}·catch·({·...rest·}:·any)·{·} diff --git a/crates/biome_js_analyze/tests/specs/nursery/noUselessUndefined/invalid.json.snap b/crates/biome_js_analyze/tests/specs/nursery/noUselessUndefined/invalid.json.snap index be9d249460e8..6954ff0cca14 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noUselessUndefined/invalid.json.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noUselessUndefined/invalid.json.snap @@ -18,6 +18,8 @@ invalid.json:1:9 lint/nursery/noUselessUndefined FIXABLE ━━━━━━━ i undefined is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the undefined. 1 │ let·a·=·undefined; @@ -41,6 +43,8 @@ invalid.json:1:9 lint/nursery/noUselessUndefined FIXABLE ━━━━━━━ i undefined is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the undefined. 1 │ let·a·=·undefined,·b·=·2; @@ -64,6 +68,8 @@ invalid.json:1:9 lint/nursery/noUselessUndefined FIXABLE ━━━━━━━ i undefined is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the undefined. 1 │ var·a·=·undefined; @@ -87,6 +93,8 @@ invalid.json:1:9 lint/nursery/noUselessUndefined FIXABLE ━━━━━━━ i undefined is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the undefined. 1 │ var·a·=·undefined,·b·=·2; @@ -110,6 +118,8 @@ invalid.json:1:24 lint/nursery/noUselessUndefined FIXABLE ━━━━━━ i undefined is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the undefined. 1 │ function·foo()·{return·undefined;} @@ -133,6 +143,8 @@ invalid.json:1:27 lint/nursery/noUselessUndefined FIXABLE ━━━━━━ i undefined is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the undefined. 1 │ const·foo·=·()·=>·{return·undefined;}; @@ -156,6 +168,8 @@ invalid.json:1:24 lint/nursery/noUselessUndefined FIXABLE ━━━━━━ i undefined is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the undefined. 1 │ function·foo()·{return·undefined;} @@ -179,6 +193,8 @@ invalid.json:1:38 lint/nursery/noUselessUndefined FIXABLE ━━━━━━ i undefined is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the undefined. 1 │ function·foo()·{return·/*·comment·*/·undefined;} @@ -202,6 +218,8 @@ invalid.json:1:24 lint/nursery/noUselessUndefined FIXABLE ━━━━━━ i undefined is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the undefined. 1 │ function*·foo()·{yield·undefined;} @@ -225,6 +243,8 @@ invalid.json:1:24 lint/nursery/noUselessUndefined FIXABLE ━━━━━━ i undefined is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the undefined. 1 │ function*·foo()·{yield·undefined;} @@ -248,6 +268,8 @@ invalid.json:1:14 lint/nursery/noUselessUndefined FIXABLE ━━━━━━ i undefined is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the undefined. 1 │ const·{foo·=·undefined}·=·{}; @@ -271,6 +293,8 @@ invalid.json:1:14 lint/nursery/noUselessUndefined FIXABLE ━━━━━━ i undefined is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the undefined. 1 │ const·[foo·=·undefined]·=·[]; @@ -294,6 +318,8 @@ invalid.json:1:20 lint/nursery/noUselessUndefined FIXABLE ━━━━━━ i undefined is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the undefined. 1 │ function·foo(bar·=·undefined)·{} @@ -317,6 +343,8 @@ invalid.json:1:21 lint/nursery/noUselessUndefined FIXABLE ━━━━━━ i undefined is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the undefined. 1 │ function·foo({bar·=·undefined})·{} @@ -340,6 +368,8 @@ invalid.json:1:21 lint/nursery/noUselessUndefined FIXABLE ━━━━━━ i undefined is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the undefined. 1 │ function·foo({bar·=·undefined}·=·{})·{} @@ -363,6 +393,8 @@ invalid.json:1:21 lint/nursery/noUselessUndefined FIXABLE ━━━━━━ i undefined is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the undefined. 1 │ function·foo([bar·=·undefined])·{} @@ -386,6 +418,8 @@ invalid.json:1:21 lint/nursery/noUselessUndefined FIXABLE ━━━━━━ i undefined is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the undefined. 1 │ function·foo([bar·=·undefined]·=·[])·{} diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueDataObjectDeclaration/invalid-createapp-mount-object-data.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueDataObjectDeclaration/invalid-createapp-mount-object-data.vue.snap index 3e5c9d82e10b..1eb14cc79ac9 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueDataObjectDeclaration/invalid-createapp-mount-object-data.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueDataObjectDeclaration/invalid-createapp-mount-object-data.vue.snap @@ -32,6 +32,8 @@ invalid-createapp-mount-object-data.vue:5:2 lint/nursery/noVueDataObjectDeclarat i Using an object declaration for `data` is deprecated, and can result in different component instances sharing the same data. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Refactor the data object into a function returning the data object 3 3 │ diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueDataObjectDeclaration/invalid-createapp-object-data.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueDataObjectDeclaration/invalid-createapp-object-data.vue.snap index 444a0616dd5d..dfbc6388e443 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueDataObjectDeclaration/invalid-createapp-object-data.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueDataObjectDeclaration/invalid-createapp-object-data.vue.snap @@ -32,6 +32,8 @@ invalid-createapp-object-data.vue:5:2 lint/nursery/noVueDataObjectDeclaration F i Using an object declaration for `data` is deprecated, and can result in different component instances sharing the same data. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Refactor the data object into a function returning the data object 3 3 │ diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueDataObjectDeclaration/invalid-export-default-object-data.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueDataObjectDeclaration/invalid-export-default-object-data.vue.snap index 48856c676e61..1f179cfcc2be 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueDataObjectDeclaration/invalid-export-default-object-data.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueDataObjectDeclaration/invalid-export-default-object-data.vue.snap @@ -31,6 +31,8 @@ invalid-export-default-object-data.vue:3:2 lint/nursery/noVueDataObjectDeclarati i Using an object declaration for `data` is deprecated, and can result in different component instances sharing the same data. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Refactor the data object into a function returning the data object 1 1 │ // export default with object `data` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueDataObjectDeclaration/invalid-export-default-parenthesized-object-data.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueDataObjectDeclaration/invalid-export-default-parenthesized-object-data.vue.snap index 0767988e2052..c33edde8b95d 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueDataObjectDeclaration/invalid-export-default-parenthesized-object-data.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueDataObjectDeclaration/invalid-export-default-parenthesized-object-data.vue.snap @@ -31,6 +31,8 @@ invalid-export-default-parenthesized-object-data.vue:3:2 lint/nursery/noVueDataO i Using an object declaration for `data` is deprecated, and can result in different component instances sharing the same data. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Refactor the data object into a function returning the data object 1 1 │ // export default with parenthesized object `data` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-asyncdata-data.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-asyncdata-data.vue.snap index 4ad103738a75..3b2268f960f8 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-asyncdata-data.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-asyncdata-data.vue.snap @@ -43,5 +43,7 @@ invalid-asyncdata-data.vue:4:7 lint/nursery/noVueDuplicateKeys ━━━━━ i Keys defined in different Vue component options (props, data, methods, computed) can conflict when accessed in the template. Rename the key to avoid conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-asyncdata-methods.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-asyncdata-methods.vue.snap index faf8a4a3d68f..5a360ac4dfd4 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-asyncdata-methods.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-asyncdata-methods.vue.snap @@ -43,5 +43,7 @@ invalid-asyncdata-methods.vue:4:7 lint/nursery/noVueDuplicateKeys ━━━━ i Keys defined in different Vue component options (props, data, methods, computed) can conflict when accessed in the template. Rename the key to avoid conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-across-sections.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-across-sections.vue.snap index 768361d3b087..5ad14d7908d4 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-across-sections.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-across-sections.vue.snap @@ -62,5 +62,7 @@ invalid-duplicate-across-sections.vue:2:13 lint/nursery/noVueDuplicateKeys ━ i Keys defined in different Vue component options (props, data, methods, computed) can conflict when accessed in the template. Rename the key to avoid conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-computed-methods.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-computed-methods.vue.snap index c2c78f1620b5..2d317664be5b 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-computed-methods.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-computed-methods.vue.snap @@ -43,5 +43,7 @@ invalid-duplicate-computed-methods.vue:3:9 lint/nursery/noVueDuplicateKeys ━ i Keys defined in different Vue component options (props, data, methods, computed) can conflict when accessed in the template. Rename the key to avoid conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-data-methods.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-data-methods.vue.snap index 0fb6cacbe25e..4862f17c66a9 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-data-methods.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-data-methods.vue.snap @@ -43,5 +43,7 @@ invalid-duplicate-data-methods.vue:4:13 lint/nursery/noVueDuplicateKeys ━━ i Keys defined in different Vue component options (props, data, methods, computed) can conflict when accessed in the template. Rename the key to avoid conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-in-data-object.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-in-data-object.vue.snap index 5535c5534e6f..0cb02708db0f 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-in-data-object.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-in-data-object.vue.snap @@ -37,5 +37,7 @@ invalid-duplicate-in-data-object.vue:3:9 lint/nursery/noVueDuplicateKeys ━━ i Keys defined in different Vue component options (props, data, methods, computed) can conflict when accessed in the template. Rename the key to avoid conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-props-data.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-props-data.vue.snap index b4414ede8bce..0d080a7c21cc 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-props-data.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-duplicate-props-data.vue.snap @@ -41,5 +41,7 @@ invalid-duplicate-props-data.vue:3:9 lint/nursery/noVueDuplicateKeys ━━━ i Keys defined in different Vue component options (props, data, methods, computed) can conflict when accessed in the template. Rename the key to avoid conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-with-setup.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-with-setup.vue.snap index 63e5113a203f..982a74acb443 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-with-setup.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueDuplicateKeys/invalid-with-setup.vue.snap @@ -69,5 +69,7 @@ invalid-with-setup.vue:2:11 lint/nursery/noVueDuplicateKeys ━━━━━━ i Keys defined in different Vue component options (props, data, methods, computed) can conflict when accessed in the template. Rename the key to avoid conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-async-data.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-async-data.vue.snap index 34ad5ef158aa..2250a2d225ef 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-async-data.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-async-data.vue.snap @@ -30,6 +30,8 @@ invalid-async-data.vue:4:13 lint/nursery/noVueReservedKeys ━━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -47,5 +49,7 @@ invalid-async-data.vue:5:13 lint/nursery/noVueReservedKeys ━━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-computed.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-computed.vue.snap index a7723e71e3cc..a351b4f3c366 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-computed.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-computed.vue.snap @@ -34,6 +34,8 @@ invalid-computed.vue:3:9 lint/nursery/noVueReservedKeys ━━━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -51,6 +53,8 @@ invalid-computed.vue:4:9 lint/nursery/noVueReservedKeys ━━━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -68,6 +72,8 @@ invalid-computed.vue:5:9 lint/nursery/noVueReservedKeys ━━━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -85,6 +91,8 @@ invalid-computed.vue:6:9 lint/nursery/noVueReservedKeys ━━━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -102,5 +110,7 @@ invalid-computed.vue:7:9 lint/nursery/noVueReservedKeys ━━━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-arrow-function.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-arrow-function.vue.snap index 8278a4c21dc1..b1518119d4d4 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-arrow-function.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-arrow-function.vue.snap @@ -30,6 +30,8 @@ invalid-data-arrow-function.vue:4:13 lint/nursery/noVueReservedKeys ━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -47,5 +49,7 @@ invalid-data-arrow-function.vue:5:13 lint/nursery/noVueReservedKeys ━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-function.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-function.vue.snap index d02fcd9e6e4b..fc84913d0fe6 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-function.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-function.vue.snap @@ -30,6 +30,8 @@ invalid-data-function.vue:4:13 lint/nursery/noVueReservedKeys ━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -47,5 +49,7 @@ invalid-data-function.vue:5:13 lint/nursery/noVueReservedKeys ━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-method.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-method.vue.snap index 2ef8cfec2be4..5b00c8d0cbc7 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-method.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-method.vue.snap @@ -30,6 +30,8 @@ invalid-data-method.vue:4:13 lint/nursery/noVueReservedKeys ━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -47,5 +49,7 @@ invalid-data-method.vue:5:13 lint/nursery/noVueReservedKeys ━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-object.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-object.vue.snap index 94e36ec2f499..736fdc983016 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-object.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-object.vue.snap @@ -28,6 +28,8 @@ invalid-data-object.vue:3:9 lint/nursery/noVueReservedKeys ━━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -45,5 +47,7 @@ invalid-data-object.vue:4:9 lint/nursery/noVueReservedKeys ━━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-short-arrow-function.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-short-arrow-function.vue.snap index fc2bf3f9428f..a7b5bca41bc9 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-short-arrow-function.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-data-short-arrow-function.vue.snap @@ -28,6 +28,8 @@ invalid-data-short-arrow-function.vue:3:9 lint/nursery/noVueReservedKeys ━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -45,5 +47,7 @@ invalid-data-short-arrow-function.vue:4:9 lint/nursery/noVueReservedKeys ━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-define-props-object.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-define-props-object.vue.snap index 418aa1dbc979..704db1b98a21 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-define-props-object.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-define-props-object.vue.snap @@ -24,5 +24,7 @@ invalid-define-props-object.vue:2:5 lint/nursery/noVueReservedKeys ━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-methods.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-methods.vue.snap index f4579e32bd34..408620ecacd3 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-methods.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-methods.vue.snap @@ -30,6 +30,8 @@ invalid-methods.vue:3:9 lint/nursery/noVueReservedKeys ━━━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -47,6 +49,8 @@ invalid-methods.vue:4:9 lint/nursery/noVueReservedKeys ━━━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -64,6 +68,8 @@ invalid-methods.vue:5:9 lint/nursery/noVueReservedKeys ━━━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -81,5 +87,7 @@ invalid-methods.vue:6:9 lint/nursery/noVueReservedKeys ━━━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-props-array.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-props-array.vue.snap index 10e24d341db6..d72aeb714d3a 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-props-array.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-props-array.vue.snap @@ -24,5 +24,7 @@ invalid-props-array.vue:2:13 lint/nursery/noVueReservedKeys ━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-props-object.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-props-object.vue.snap index bdc9ea311842..4fc9b3b05bd3 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-props-object.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-props-object.vue.snap @@ -27,5 +27,7 @@ invalid-props-object.vue:3:9 lint/nursery/noVueReservedKeys ━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-setup-interface.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-setup-interface.vue.snap index 4d60bca743c6..d7d2dd66051b 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-setup-interface.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-setup-interface.vue.snap @@ -1,6 +1,5 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -assertion_line: 151 expression: invalid-setup-interface.vue --- # Input @@ -26,5 +25,7 @@ invalid-setup-interface.vue:2:5 lint/nursery/noVueReservedKeys ━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-setup-type-alias.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-setup-type-alias.vue.snap index e853d78a0c0c..deb320830964 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-setup-type-alias.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-setup-type-alias.vue.snap @@ -1,6 +1,5 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -assertion_line: 151 expression: invalid-setup-type-alias.vue --- # Input @@ -26,5 +25,7 @@ invalid-setup-type-alias.vue:2:5 lint/nursery/noVueReservedKeys ━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-type-inline.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-type-inline.vue.snap index 192fd7e24564..33ac23dd7f74 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-type-inline.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedKeys/invalid-type-inline.vue.snap @@ -20,5 +20,7 @@ invalid-type-inline.vue:1:14 lint/nursery/noVueReservedKeys ━━━━━━ i Rename the key to avoid conflicts with Vue reserved keys. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-create-app.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-create-app.vue.snap index 2ea110635f4f..77d2ae5a05e5 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-create-app.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-create-app.vue.snap @@ -31,6 +31,8 @@ invalid-create-app.vue:5:9 lint/nursery/noVueReservedProps ━━━━━━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -48,5 +50,7 @@ invalid-create-app.vue:6:9 lint/nursery/noVueReservedProps ━━━━━━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-component-setup.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-component-setup.js.snap index 0bd747337683..3e9b8563ecbc 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-component-setup.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-component-setup.js.snap @@ -1,6 +1,5 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -assertion_line: 146 expression: invalid-define-component-setup.js --- # Input @@ -32,6 +31,8 @@ invalid-define-component-setup.js:5:9 lint/nursery/noVueReservedProps ━━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -49,5 +50,7 @@ invalid-define-component-setup.js:6:9 lint/nursery/noVueReservedProps ━━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-component.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-component.js.snap index 473495611664..cbc42b972c15 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-component.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-component.js.snap @@ -1,6 +1,5 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -assertion_line: 146 expression: invalid-define-component.js --- # Input @@ -32,6 +31,8 @@ invalid-define-component.js:5:9 lint/nursery/noVueReservedProps ━━━━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -49,5 +50,7 @@ invalid-define-component.js:6:9 lint/nursery/noVueReservedProps ━━━━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-array.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-array.vue.snap index 80e75890a79b..9787858e863b 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-array.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-array.vue.snap @@ -26,6 +26,8 @@ invalid-define-props-array.vue:2:5 lint/nursery/noVueReservedProps ━━━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -43,5 +45,7 @@ invalid-define-props-array.vue:3:5 lint/nursery/noVueReservedProps ━━━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-interface.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-interface.vue.snap index 03b1e1793131..36cc9290a16d 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-interface.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-interface.vue.snap @@ -29,6 +29,8 @@ invalid-define-props-interface.vue:3:5 lint/nursery/noVueReservedProps ━━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -46,5 +48,7 @@ invalid-define-props-interface.vue:4:5 lint/nursery/noVueReservedProps ━━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-object.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-object.vue.snap index 629d8505c0e5..781df02a584c 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-object.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-object.vue.snap @@ -26,6 +26,8 @@ invalid-define-props-object.vue:2:5 lint/nursery/noVueReservedProps ━━━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -43,5 +45,7 @@ invalid-define-props-object.vue:3:5 lint/nursery/noVueReservedProps ━━━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-type-alias.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-type-alias.vue.snap index 170d9ad941de..a9620020e43e 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-type-alias.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-type-alias.vue.snap @@ -29,6 +29,8 @@ invalid-define-props-type-alias.vue:3:5 lint/nursery/noVueReservedProps ━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -46,5 +48,7 @@ invalid-define-props-type-alias.vue:4:5 lint/nursery/noVueReservedProps ━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-type-inline.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-type-inline.vue.snap index 8ce273647eb2..6c5a8de74a2b 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-type-inline.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-define-props-type-inline.vue.snap @@ -26,6 +26,8 @@ invalid-define-props-type-inline.vue:2:5 lint/nursery/noVueReservedProps ━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -43,5 +45,7 @@ invalid-define-props-type-inline.vue:3:5 lint/nursery/noVueReservedProps ━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-export-default-array.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-export-default-array.vue.snap index 1d6043310c78..5de740acd563 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-export-default-array.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-export-default-array.vue.snap @@ -29,6 +29,8 @@ invalid-export-default-array.vue:3:9 lint/nursery/noVueReservedProps ━━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -46,5 +48,7 @@ invalid-export-default-array.vue:4:9 lint/nursery/noVueReservedProps ━━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-export-default-object.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-export-default-object.vue.snap index 4d73b8427c4e..403366c81c19 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-export-default-object.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueReservedProps/invalid-export-default-object.vue.snap @@ -29,6 +29,8 @@ invalid-export-default-object.vue:3:9 lint/nursery/noVueReservedProps ━━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -46,5 +48,7 @@ invalid-export-default-object.vue:4:9 lint/nursery/noVueReservedProps ━━━ i Rename the prop to avoid possible conflicts. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueSetupPropsReactivityLoss/invalid-parameter-destructuring.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueSetupPropsReactivityLoss/invalid-parameter-destructuring.js.snap index 629118f8bed9..090d0a6ed90d 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueSetupPropsReactivityLoss/invalid-parameter-destructuring.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueSetupPropsReactivityLoss/invalid-parameter-destructuring.js.snap @@ -66,6 +66,8 @@ invalid-parameter-destructuring.js:5:9 lint/nursery/noVueSetupPropsReactivityLos i To preserve reactivity, access props as properties: `props.propertyName`. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -83,5 +85,7 @@ invalid-parameter-destructuring.js:33:9 lint/nursery/noVueSetupPropsReactivityLo i To preserve reactivity, access props as properties: `props.propertyName`. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/noVueSetupPropsReactivityLoss/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/noVueSetupPropsReactivityLoss/invalid.js.snap index 215a63894b69..f3d6a99707b1 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noVueSetupPropsReactivityLoss/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noVueSetupPropsReactivityLoss/invalid.js.snap @@ -28,5 +28,7 @@ invalid.js:3:9 lint/nursery/noVueSetupPropsReactivityLoss ━━━━━━━ i To preserve reactivity, access props as properties: `props.propertyName`. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useArraySortCompare/invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/useArraySortCompare/invalid.ts.snap index bd96bbc966d1..368b2bfb3154 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useArraySortCompare/invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useArraySortCompare/invalid.ts.snap @@ -33,6 +33,8 @@ invalid.ts:2:1 lint/nursery/useArraySortCompare ━━━━━━━━━━ i Add a compare function to prevent unexpected sorting. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -52,6 +54,8 @@ invalid.ts:3:1 lint/nursery/useArraySortCompare ━━━━━━━━━━ i Add a compare function to prevent unexpected sorting. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -71,6 +75,8 @@ invalid.ts:5:1 lint/nursery/useArraySortCompare ━━━━━━━━━━ i Add a compare function to prevent unexpected sorting. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -89,6 +95,8 @@ invalid.ts:6:1 lint/nursery/useArraySortCompare ━━━━━━━━━━ i Add a compare function to prevent unexpected sorting. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -107,6 +115,8 @@ invalid.ts:9:1 lint/nursery/useArraySortCompare ━━━━━━━━━━ i Add a compare function to prevent unexpected sorting. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -125,5 +135,7 @@ invalid.ts:10:1 lint/nursery/useArraySortCompare ━━━━━━━━━━ i Add a compare function to prevent unexpected sorting. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useAwaitThenable/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/useAwaitThenable/invalid.js.snap index 3c2e6ce19b25..856f1f8b2192 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useAwaitThenable/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useAwaitThenable/invalid.js.snap @@ -30,6 +30,8 @@ invalid.js:3:1 lint/nursery/useAwaitThenable ━━━━━━━━━━━ i Please ensure the value is not a custom "thenable" implementation before removing the `await`: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise#thenables + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -47,5 +49,7 @@ invalid.js:6:1 lint/nursery/useAwaitThenable ━━━━━━━━━━━ i Please ensure the value is not a custom "thenable" implementation before removing the `await`: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise#thenables + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/always.invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/always.invalid.js.snap index ab42f9d3359b..443adfd0e572 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/always.invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/always.invalid.js.snap @@ -22,6 +22,8 @@ always.invalid.js:1:30 lint/nursery/useConsistentArrowReturn FIXABLE ━━━ 2 │ 3 │ const returnsAwaitArrow = async () => await fetchData() + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Add braces to the arrow function body. 1 │ - const·returnsSequenceArrow·=·()·=>·(a,·b) @@ -45,6 +47,8 @@ always.invalid.js:3:27 lint/nursery/useConsistentArrowReturn FIXABLE ━━━ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4 │ + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Add braces to the arrow function body. 1 1 │ const returnsSequenceArrow = () => (a, b) diff --git a/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/invalid.js.snap index 8ee986c08aa6..a15350d5e2b5 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/invalid.js.snap @@ -1,6 +1,5 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -assertion_line: 152 expression: invalid.js --- # Input @@ -34,6 +33,8 @@ invalid.js:1:28 lint/nursery/useConsistentArrowReturn FIXABLE ━━━━━ 4 │ 5 │ const returnsSequenceArrow = () => { + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the return statement. 1 │ - const·returnsObjectArrow·=·()·=>·{ @@ -60,6 +61,8 @@ invalid.js:5:30 lint/nursery/useConsistentArrowReturn FIXABLE ━━━━━ │ ^ 8 │ + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the return statement. 3 3 │ } @@ -86,6 +89,8 @@ invalid.js:10:27 lint/nursery/useConsistentArrowReturn FIXABLE ━━━━━ │ ^ 13 │ + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the return statement. 8 8 │ diff --git a/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/multiline.invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/multiline.invalid.js.snap index 7530b443319f..b3ba259ef53a 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/multiline.invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/multiline.invalid.js.snap @@ -73,6 +73,8 @@ multiline.invalid.js:1:26 lint/nursery/useConsistentArrowReturn FIXABLE ━━ 4 │ 5 │ const multipleChainedMethods = (arr) => + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Add braces to the arrow function body. 1 1 │ const chainedOnNewLine = (l) => @@ -104,6 +106,8 @@ multiline.invalid.js:5:32 lint/nursery/useConsistentArrowReturn FIXABLE ━━ 9 │ 10 │ const objectWithMultipleProperties = () => + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Add braces to the arrow function body. 4 4 │ @@ -133,6 +137,8 @@ multiline.invalid.js:7:13 lint/nursery/useConsistentArrowReturn FIXABLE ━━ 8 │ .map(x => x * 2) 9 │ + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Add braces to the arrow function body. 5 5 │ const multipleChainedMethods = (arr) => @@ -159,6 +165,8 @@ multiline.invalid.js:8:10 lint/nursery/useConsistentArrowReturn FIXABLE ━━ 9 │ 10 │ const objectWithMultipleProperties = () => + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Add braces to the arrow function body. 6 6 │ arr @@ -190,6 +198,8 @@ multiline.invalid.js:10:38 lint/nursery/useConsistentArrowReturn FIXABLE ━ 15 │ 16 │ const arrayWithMultipleElements = () => + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Add braces to the arrow function body. 9 9 │ @@ -226,6 +236,8 @@ multiline.invalid.js:16:35 lint/nursery/useConsistentArrowReturn FIXABLE ━ 22 │ 23 │ const nested = () => + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Add braces to the arrow function body. 15 15 │ @@ -262,6 +274,8 @@ multiline.invalid.js:23:16 lint/nursery/useConsistentArrowReturn FIXABLE ━ 28 │ 29 │ const withInlineComment = (l) => + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Add braces to the arrow function body. 22 22 │ @@ -292,6 +306,8 @@ multiline.invalid.js:37:13 lint/nursery/useConsistentArrowReturn FIXABLE ━ 38 │ 39 │ const withCommentInObject = () => + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Add braces to the arrow function body. 35 35 │ arr diff --git a/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/never.invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/never.invalid.js.snap index 28f50aadcf52..a83bfbe5ffdf 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/never.invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/never.invalid.js.snap @@ -33,6 +33,8 @@ never.invalid.js:1:11 lint/nursery/useConsistentArrowReturn FIXABLE ━━━ 4 │ 5 │ const b = async () => { + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the return statement. 1 │ - const·a·=·()·=>·{ @@ -60,6 +62,8 @@ never.invalid.js:5:11 lint/nursery/useConsistentArrowReturn FIXABLE ━━━ 8 │ 9 │ const d = () => { + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the return statement. 3 3 │ }; @@ -88,6 +92,8 @@ never.invalid.js:9:11 lint/nursery/useConsistentArrowReturn FIXABLE ━━━ │ ^ 12 │ + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the return statement. 7 7 │ } diff --git a/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/requireReturn.invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/requireReturn.invalid.js.snap index d7b5c4456029..83ee5249f872 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/requireReturn.invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useConsistentArrowReturn/requireReturn.invalid.js.snap @@ -39,6 +39,8 @@ requireReturn.invalid.js:3:28 lint/nursery/useConsistentArrowReturn FIXABLE │ ^^^^^^^^^^^^^^^^^^^^^^^ 4 │ + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Add braces to the arrow function body. 1 1 │ @@ -65,6 +67,8 @@ requireReturn.invalid.js:6:30 lint/nursery/useConsistentArrowReturn FIXABLE │ ^ 9 │ + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the return statement. 4 4 │ @@ -92,6 +96,8 @@ requireReturn.invalid.js:11:27 lint/nursery/useConsistentArrowReturn FIXABLE 14 │ 15 │ const nestedArrow = { + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Remove the return statement. 9 9 │ @@ -118,6 +124,8 @@ requireReturn.invalid.js:17:23 lint/nursery/useConsistentArrowReturn FIXABLE 18 │ return inner; 19 │ } + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Safe fix: Add braces to the arrow function body. 15 15 │ const nestedArrow = { diff --git a/crates/biome_js_analyze/tests/specs/nursery/useDestructuring/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/useDestructuring/invalid.js.snap index e7c3b70171ca..eaa5c0695212 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useDestructuring/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useDestructuring/invalid.js.snap @@ -111,6 +111,8 @@ invalid.js:3:6 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the array index access with array destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -130,6 +132,8 @@ invalid.js:6:2 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the array index access with array destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -149,6 +153,8 @@ invalid.js:9:6 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -168,6 +174,8 @@ invalid.js:12:6 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -187,6 +195,8 @@ invalid.js:15:6 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -206,6 +216,8 @@ invalid.js:18:6 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -225,6 +237,8 @@ invalid.js:21:6 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -244,6 +258,8 @@ invalid.js:24:6 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -263,6 +279,8 @@ invalid.js:27:6 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -282,6 +300,8 @@ invalid.js:33:2 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -301,6 +321,8 @@ invalid.js:41:8 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -319,6 +341,8 @@ invalid.js:47:20 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -338,6 +362,8 @@ invalid.js:51:17 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -357,6 +383,8 @@ invalid.js:54:6 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -376,6 +404,8 @@ invalid.js:58:3 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -395,6 +425,8 @@ invalid.js:61:6 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -414,6 +446,8 @@ invalid.js:65:6 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -433,6 +467,8 @@ invalid.js:68:6 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -452,6 +488,8 @@ invalid.js:72:6 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -471,6 +509,8 @@ invalid.js:75:6 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -490,6 +530,8 @@ invalid.js:78:6 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -509,6 +551,8 @@ invalid.js:81:6 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -528,5 +572,7 @@ invalid.js:85:6 lint/nursery/useDestructuring ━━━━━━━━━━━ i Replace the property access with object destructuring syntax. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useExhaustiveSwitchCases/invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/useExhaustiveSwitchCases/invalid.ts.snap index 56bbcf45c0ef..270fb1fa2b13 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useExhaustiveSwitchCases/invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useExhaustiveSwitchCases/invalid.ts.snap @@ -107,6 +107,8 @@ invalid.ts:13:1 lint/nursery/useExhaustiveSwitchCases FIXABLE ━━━━━ i Some variants of the union type are not handled here. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i These cases are missing: - "Tuesday" @@ -150,6 +152,8 @@ invalid.ts:20:1 lint/nursery/useExhaustiveSwitchCases FIXABLE ━━━━━ i Some variants of the union type are not handled here. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i These cases are missing: - "Monday" @@ -195,6 +199,8 @@ invalid.ts:29:2 lint/nursery/useExhaustiveSwitchCases FIXABLE ━━━━━ i Some variants of the union type are not handled here. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i These cases are missing: - "b" @@ -231,6 +237,8 @@ invalid.ts:42:2 lint/nursery/useExhaustiveSwitchCases FIXABLE ━━━━━ i Some variants of the union type are not handled here. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i These cases are missing: - 1 @@ -267,6 +275,8 @@ invalid.ts:51:2 lint/nursery/useExhaustiveSwitchCases FIXABLE ━━━━━ i Some variants of the union type are not handled here. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i These cases are missing: - "B" @@ -299,6 +309,8 @@ invalid.ts:58:1 lint/nursery/useExhaustiveSwitchCases FIXABLE ━━━━━ i Some variants of the union type are not handled here. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i These cases are missing: - "literal" @@ -325,6 +337,8 @@ invalid.ts:62:1 lint/nursery/useExhaustiveSwitchCases FIXABLE ━━━━━ i Some variants of the union type are not handled here. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i These cases are missing: - "literal" @@ -353,6 +367,8 @@ invalid.ts:66:1 lint/nursery/useExhaustiveSwitchCases FIXABLE ━━━━━ i Some variants of the union type are not handled here. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i These cases are missing: - 1 @@ -387,6 +403,8 @@ invalid.ts:72:1 lint/nursery/useExhaustiveSwitchCases FIXABLE ━━━━━ i Some variants of the union type are not handled here. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i These cases are missing: - "2" @@ -418,6 +436,8 @@ invalid.ts:78:1 lint/nursery/useExhaustiveSwitchCases FIXABLE ━━━━━ i Some variants of the union type are not handled here. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i These cases are missing: - "1" diff --git a/crates/biome_js_analyze/tests/specs/nursery/useExhaustiveSwitchCases/invalidIssue6891.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/useExhaustiveSwitchCases/invalidIssue6891.ts.snap index 824c9305ac21..62b0ea556c0c 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useExhaustiveSwitchCases/invalidIssue6891.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useExhaustiveSwitchCases/invalidIssue6891.ts.snap @@ -42,6 +42,8 @@ invalidIssue6891.ts:11:3 lint/nursery/useExhaustiveSwitchCases FIXABLE ━━ i Some variants of the union type are not handled here. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i These cases are missing: - "jumping" diff --git a/crates/biome_js_analyze/tests/specs/nursery/useExhaustiveSwitchCases/invalidIssue6939.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/useExhaustiveSwitchCases/invalidIssue6939.ts.snap index 570d0144bcf2..77d80243e8b9 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useExhaustiveSwitchCases/invalidIssue6939.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useExhaustiveSwitchCases/invalidIssue6939.ts.snap @@ -40,6 +40,8 @@ invalidIssue6939.ts:10:5 lint/nursery/useExhaustiveSwitchCases FIXABLE ━━ i Some variants of the union type are not handled here. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i These cases are missing: - "jumping" diff --git a/crates/biome_js_analyze/tests/specs/nursery/useExplicitType/invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/useExplicitType/invalid.ts.snap index ac5924ce2032..7099612b4cb7 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useExplicitType/invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useExplicitType/invalid.ts.snap @@ -182,6 +182,8 @@ invalid.ts:1:1 lint/nursery/useExplicitType ━━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -201,6 +203,8 @@ invalid.ts:5:1 lint/nursery/useExplicitType ━━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -223,6 +227,8 @@ invalid.ts:9:12 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -242,6 +248,8 @@ invalid.ts:13:17 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -260,6 +268,8 @@ invalid.ts:14:22 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -282,6 +292,8 @@ invalid.ts:18:2 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the member. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -301,6 +313,8 @@ invalid.ts:21:11 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a type to the parameter. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -323,6 +337,8 @@ invalid.ts:23:2 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the member. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -342,6 +358,8 @@ invalid.ts:26:10 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -364,6 +382,8 @@ invalid.ts:27:2 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the member. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -385,6 +405,8 @@ invalid.ts:33:2 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the member. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -406,6 +428,8 @@ invalid.ts:39:2 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the member. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -425,6 +449,8 @@ invalid.ts:42:13 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a type to the parameter. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -444,6 +470,8 @@ invalid.ts:47:14 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -462,6 +490,8 @@ invalid.ts:48:14 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -481,6 +511,8 @@ invalid.ts:50:16 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -499,6 +531,8 @@ invalid.ts:51:16 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -517,6 +551,8 @@ invalid.ts:54:23 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -536,6 +572,8 @@ invalid.ts:55:23 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -555,6 +593,8 @@ invalid.ts:57:9 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -579,6 +619,8 @@ invalid.ts:62:17 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -603,6 +645,8 @@ invalid.ts:71:17 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -622,6 +666,8 @@ invalid.ts:85:1 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -641,6 +687,8 @@ invalid.ts:92:1 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -660,6 +708,8 @@ invalid.ts:99:29 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -679,6 +729,8 @@ invalid.ts:99:69 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -696,6 +748,8 @@ invalid.ts:100:36 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -713,6 +767,8 @@ invalid.ts:100:76 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -732,6 +788,8 @@ invalid.ts:112:16 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -751,6 +809,8 @@ invalid.ts:120:2 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the member. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -769,6 +829,8 @@ invalid.ts:124:2 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the member. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -787,6 +849,8 @@ invalid.ts:129:2 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the member. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -806,6 +870,8 @@ invalid.ts:134:2 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the member. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -824,6 +890,8 @@ invalid.ts:138:2 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function declaration. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -842,6 +910,8 @@ invalid.ts:142:17 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function declaration. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -861,6 +931,8 @@ invalid.ts:145:19 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -879,6 +951,8 @@ invalid.ts:146:26 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -898,6 +972,8 @@ invalid.ts:148:7 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a type to the variable. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -917,6 +993,8 @@ invalid.ts:150:5 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a type to the variable. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -935,6 +1013,8 @@ invalid.ts:151:5 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a type to the variable. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -954,6 +1034,8 @@ invalid.ts:152:5 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a type to the variable. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -972,6 +1054,8 @@ invalid.ts:155:7 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -990,6 +1074,8 @@ invalid.ts:158:2 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -1008,5 +1094,7 @@ invalid.ts:158:18 lint/nursery/useExplicitType ━━━━━━━━━━━ i Add a return type to the function. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useExplicitType/invalidArguments.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/useExplicitType/invalidArguments.ts.snap index bdc3920981ef..e8a037cc32a6 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useExplicitType/invalidArguments.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useExplicitType/invalidArguments.ts.snap @@ -48,6 +48,8 @@ invalidArguments.ts:2:23 lint/nursery/useExplicitType ━━━━━━━━ i Add a type to the parameter. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -66,6 +68,8 @@ invalidArguments.ts:5:28 lint/nursery/useExplicitType ━━━━━━━━ i Replace any with unknown or a more specific type. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -84,6 +88,8 @@ invalidArguments.ts:8:14 lint/nursery/useExplicitType ━━━━━━━━ i Add a type to the parameter. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -103,6 +109,8 @@ invalidArguments.ts:12:11 lint/nursery/useExplicitType ━━━━━━━━ i Add a type to the parameter. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -122,6 +130,8 @@ invalidArguments.ts:13:9 lint/nursery/useExplicitType ━━━━━━━━ i Add a type to the parameter. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -141,6 +151,8 @@ invalidArguments.ts:16:11 lint/nursery/useExplicitType ━━━━━━━━ i Add a type to the parameter. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -159,6 +171,8 @@ invalidArguments.ts:20:9 lint/nursery/useExplicitType ━━━━━━━━ i Add a type to the parameter. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -178,5 +192,7 @@ invalidArguments.ts:23:11 lint/nursery/useExplicitType ━━━━━━━━ i Add a type to the parameter. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useFind/invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/useFind/invalid.ts.snap index 96cab3d5af81..52ff94acda84 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useFind/invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useFind/invalid.ts.snap @@ -28,6 +28,8 @@ invalid.ts:1:1 lint/nursery/useFind ━━━━━━━━━━━━━━ i Use Array#find() instead of Array#filter[0] to improve readability. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -44,6 +46,8 @@ invalid.ts:2:16 lint/nursery/useFind ━━━━━━━━━━━━━━ i Use Array#find() instead of Array#filter[0] to improve readability. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -61,6 +65,8 @@ invalid.ts:4:1 lint/nursery/useFind ━━━━━━━━━━━━━━ i Use Array#find() instead of Array#filter[0] to improve readability. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -77,6 +83,8 @@ invalid.ts:5:16 lint/nursery/useFind ━━━━━━━━━━━━━━ i Use Array#find() instead of Array#filter[0] to improve readability. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -94,6 +102,8 @@ invalid.ts:7:1 lint/nursery/useFind ━━━━━━━━━━━━━━ i Use Array#find() instead of Array#filter[0] to improve readability. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -109,5 +119,7 @@ invalid.ts:8:1 lint/nursery/useFind ━━━━━━━━━━━━━━ i Use Array#find() instead of Array#filter[0] to improve readability. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useMaxParams/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/useMaxParams/invalid.js.snap index f5b02d68d458..bd5b6ac33792 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useMaxParams/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useMaxParams/invalid.js.snap @@ -65,6 +65,8 @@ invalid.js:1:23 lint/nursery/useMaxParams ━━━━━━━━━━━━ i Consider using an options object, splitting into smaller functions, or grouping related parameters. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -84,6 +86,8 @@ invalid.js:5:23 lint/nursery/useMaxParams ━━━━━━━━━━━━ i Consider using an options object, splitting into smaller functions, or grouping related parameters. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -103,6 +107,8 @@ invalid.js:9:21 lint/nursery/useMaxParams ━━━━━━━━━━━━ i Consider using an options object, splitting into smaller functions, or grouping related parameters. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -122,6 +128,8 @@ invalid.js:13:39 lint/nursery/useMaxParams ━━━━━━━━━━━━ i Consider using an options object, splitting into smaller functions, or grouping related parameters. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -141,6 +149,8 @@ invalid.js:17:16 lint/nursery/useMaxParams ━━━━━━━━━━━━ i Consider using an options object, splitting into smaller functions, or grouping related parameters. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -160,6 +170,8 @@ invalid.js:21:16 lint/nursery/useMaxParams ━━━━━━━━━━━━ i Consider using an options object, splitting into smaller functions, or grouping related parameters. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -178,6 +190,8 @@ invalid.js:24:11 lint/nursery/useMaxParams ━━━━━━━━━━━━ i Consider using an options object, splitting into smaller functions, or grouping related parameters. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -197,6 +211,8 @@ invalid.js:28:16 lint/nursery/useMaxParams ━━━━━━━━━━━━ i Consider using an options object, splitting into smaller functions, or grouping related parameters. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -215,6 +231,8 @@ invalid.js:34:11 lint/nursery/useMaxParams ━━━━━━━━━━━━ i Consider using an options object, splitting into smaller functions, or grouping related parameters. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -234,5 +252,7 @@ invalid.js:39:23 lint/nursery/useMaxParams ━━━━━━━━━━━━ i Consider using an options object, splitting into smaller functions, or grouping related parameters. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useMaxParams/invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/useMaxParams/invalid.ts.snap index 551e5528e308..a452dc835a36 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useMaxParams/invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useMaxParams/invalid.ts.snap @@ -39,6 +39,8 @@ invalid.ts:5:23 lint/nursery/useMaxParams ━━━━━━━━━━━━ i Consider using an options object, splitting into smaller functions, or grouping related parameters. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -58,6 +60,8 @@ invalid.ts:9:31 lint/nursery/useMaxParams ━━━━━━━━━━━━ i Consider using an options object, splitting into smaller functions, or grouping related parameters. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -77,6 +81,8 @@ invalid.ts:13:26 lint/nursery/useMaxParams ━━━━━━━━━━━━ i Consider using an options object, splitting into smaller functions, or grouping related parameters. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -95,5 +101,7 @@ invalid.ts:15:12 lint/nursery/useMaxParams ━━━━━━━━━━━━ i Consider using an options object, splitting into smaller functions, or grouping related parameters. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useMaxParams/invalidCustomMax.js.snap b/crates/biome_js_analyze/tests/specs/nursery/useMaxParams/invalidCustomMax.js.snap index 4c3028bef97f..ebfc21ac9f0e 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useMaxParams/invalidCustomMax.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useMaxParams/invalidCustomMax.js.snap @@ -26,5 +26,7 @@ invalidCustomMax.js:2:19 lint/nursery/useMaxParams ━━━━━━━━━ i Consider using an options object, splitting into smaller functions, or grouping related parameters. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useQwikMethodUsage/invalid.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/useQwikMethodUsage/invalid.jsx.snap index eef6bad13385..370a1e40943d 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useQwikMethodUsage/invalid.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useQwikMethodUsage/invalid.jsx.snap @@ -209,6 +209,8 @@ invalid.jsx:6:17 lint/nursery/useQwikMethodUsage ━━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -233,6 +235,8 @@ invalid.jsx:11:3 lint/nursery/useQwikMethodUsage ━━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -253,6 +257,8 @@ invalid.jsx:17:21 lint/nursery/useQwikMethodUsage ━━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -277,6 +283,8 @@ invalid.jsx:22:22 lint/nursery/useQwikMethodUsage ━━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -301,6 +309,8 @@ invalid.jsx:31:22 lint/nursery/useQwikMethodUsage ━━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -325,6 +335,8 @@ invalid.jsx:40:5 lint/nursery/useQwikMethodUsage ━━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -346,6 +358,8 @@ invalid.jsx:49:18 lint/nursery/useQwikMethodUsage ━━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -367,6 +381,8 @@ invalid.jsx:50:17 lint/nursery/useQwikMethodUsage ━━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -391,6 +407,8 @@ invalid.jsx:51:3 lint/nursery/useQwikMethodUsage ━━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -412,6 +430,8 @@ invalid.jsx:59:20 lint/nursery/useQwikMethodUsage ━━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -433,6 +453,8 @@ invalid.jsx:66:18 lint/nursery/useQwikMethodUsage ━━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -454,6 +476,8 @@ invalid.jsx:73:18 lint/nursery/useQwikMethodUsage ━━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -475,6 +499,8 @@ invalid.jsx:79:18 lint/nursery/useQwikMethodUsage ━━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -496,6 +522,8 @@ invalid.jsx:86:20 lint/nursery/useQwikMethodUsage ━━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -517,6 +545,8 @@ invalid.jsx:94:20 lint/nursery/useQwikMethodUsage ━━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -538,6 +568,8 @@ invalid.jsx:102:20 lint/nursery/useQwikMethodUsage ━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -559,6 +591,8 @@ invalid.jsx:111:18 lint/nursery/useQwikMethodUsage ━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -580,6 +614,8 @@ invalid.jsx:117:18 lint/nursery/useQwikMethodUsage ━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -601,6 +637,8 @@ invalid.jsx:123:18 lint/nursery/useQwikMethodUsage ━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -622,6 +660,8 @@ invalid.jsx:129:18 lint/nursery/useQwikMethodUsage ━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -643,6 +683,8 @@ invalid.jsx:138:18 lint/nursery/useQwikMethodUsage ━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -664,6 +706,8 @@ invalid.jsx:146:22 lint/nursery/useQwikMethodUsage ━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -685,6 +729,8 @@ invalid.jsx:155:18 lint/nursery/useQwikMethodUsage ━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -706,6 +752,8 @@ invalid.jsx:162:20 lint/nursery/useQwikMethodUsage ━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -727,6 +775,8 @@ invalid.jsx:169:18 lint/nursery/useQwikMethodUsage ━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -748,5 +798,7 @@ invalid.jsx:175:18 lint/nursery/useQwikMethodUsage ━━━━━━━━━ i Check the Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useQwikValidLexicalScope/invalid.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/useQwikValidLexicalScope/invalid.jsx.snap index 4bb0f9c3ff9d..983aa0a1f594 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useQwikValidLexicalScope/invalid.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useQwikValidLexicalScope/invalid.jsx.snap @@ -191,6 +191,8 @@ invalid.jsx:5:11 lint/nursery/useQwikValidLexicalScope ━━━━━━━━ i Wrap the expression with $(...) to make it serializable. Learn more: Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -217,6 +219,8 @@ invalid.jsx:20:23 lint/nursery/useQwikValidLexicalScope ━━━━━━━━ i Wrap the expression with $(...) to make it serializable. Learn more: Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -244,6 +248,8 @@ invalid.jsx:56:23 lint/nursery/useQwikValidLexicalScope ━━━━━━━━ i Wrap the expression with $(...) to make it serializable. Learn more: Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -271,6 +277,8 @@ invalid.jsx:67:29 lint/nursery/useQwikValidLexicalScope ━━━━━━━━ i Wrap the expression with $(...) to make it serializable. Learn more: Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -298,6 +306,8 @@ invalid.jsx:79:29 lint/nursery/useQwikValidLexicalScope ━━━━━━━━ i Wrap the expression with $(...) to make it serializable. Learn more: Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -325,6 +335,8 @@ invalid.jsx:91:29 lint/nursery/useQwikValidLexicalScope ━━━━━━━━ i Wrap the expression with $(...) to make it serializable. Learn more: Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -351,5 +363,7 @@ invalid.jsx:132:25 lint/nursery/useQwikValidLexicalScope ━━━━━━━ i Wrap the expression with $(...) to make it serializable. Learn more: Qwik documentation. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useRegexpExec/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/useRegexpExec/invalid.js.snap index 9892864f22eb..63ed7e86b3f7 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useRegexpExec/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useRegexpExec/invalid.js.snap @@ -33,6 +33,8 @@ invalid.js:1:1 lint/nursery/useRegexpExec ━━━━━━━━━━━━ i Use RegExp#exec() instead of String#match() for consistent and slightly faster regex matching. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -50,6 +52,8 @@ invalid.js:3:1 lint/nursery/useRegexpExec ━━━━━━━━━━━━ i Use RegExp#exec() instead of String#match() for consistent and slightly faster regex matching. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -67,5 +71,7 @@ invalid.js:9:1 lint/nursery/useRegexpExec ━━━━━━━━━━━━ i Use RegExp#exec() instead of String#match() for consistent and slightly faster regex matching. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/codeOptionsUnsorted.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/codeOptionsUnsorted.jsx.snap index 30d0e2aa36ef..3afe5395aa01 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/codeOptionsUnsorted.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/codeOptionsUnsorted.jsx.snap @@ -74,6 +74,8 @@ codeOptionsUnsorted.jsx:4:13 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 2 2 │ {/* attributes */} @@ -100,6 +102,8 @@ codeOptionsUnsorted.jsx:5:17 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 3 3 │ {/* SHOULD emit diagnostics (class/className attributes supported by default) */} @@ -126,6 +130,8 @@ codeOptionsUnsorted.jsx:7:28 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 5 5 │
@@ -152,6 +158,8 @@ codeOptionsUnsorted.jsx:12:13 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 10 10 │ {/* utility sorting */} @@ -178,6 +186,8 @@ codeOptionsUnsorted.jsx:13:13 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 11 11 │ {/* SHOULD emit diagnostics (class attribute supported by default) */} @@ -204,6 +214,8 @@ codeOptionsUnsorted.jsx:14:13 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 12 12 │
@@ -230,6 +242,8 @@ codeOptionsUnsorted.jsx:15:13 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 13 13 │
@@ -256,6 +270,8 @@ codeOptionsUnsorted.jsx:16:13 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 14 14 │
@@ -282,6 +298,8 @@ codeOptionsUnsorted.jsx:17:13 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 15 15 │
@@ -308,6 +326,8 @@ codeOptionsUnsorted.jsx:18:13 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 16 16 │
@@ -334,6 +354,8 @@ codeOptionsUnsorted.jsx:19:13 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 17 17 │
@@ -360,6 +382,8 @@ codeOptionsUnsorted.jsx:20:13 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 18 18 │
@@ -386,6 +410,8 @@ codeOptionsUnsorted.jsx:21:13 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 19 19 │
@@ -412,6 +438,8 @@ codeOptionsUnsorted.jsx:26:6 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 24 24 │ // functions @@ -438,6 +466,8 @@ codeOptionsUnsorted.jsx:27:4 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 25 25 │ /* SHOULD emit diagnostics (functions specified in options) */ @@ -464,6 +494,8 @@ codeOptionsUnsorted.jsx:35:13 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 33 33 │ // nested values @@ -490,6 +522,8 @@ codeOptionsUnsorted.jsx:36:14 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 34 34 │ /* SHOULD emit diagnostics (class attribute supported by default) */ @@ -516,6 +550,8 @@ codeOptionsUnsorted.jsx:39:3 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 37 37 │
; @@ -672,6 +718,8 @@ codeOptionsUnsorted.jsx:48:2 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 46 46 │ clsx(["px-2 foo p-4 bar"]); @@ -698,6 +746,8 @@ codeOptionsUnsorted.jsx:49:3 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 47 47 │ clsx({ @@ -724,6 +774,8 @@ codeOptionsUnsorted.jsx:50:5 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 48 48 │ "px-2 foo p-4 bar": [ @@ -750,6 +802,8 @@ codeOptionsUnsorted.jsx:50:25 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 48 48 │ "px-2 foo p-4 bar": [ @@ -776,6 +830,8 @@ codeOptionsUnsorted.jsx:50:54 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 48 48 │ "px-2 foo p-4 bar": [ diff --git a/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/issue_3394.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/issue_3394.jsx.snap index 8cdc29409e98..215f153d5ee2 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/issue_3394.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/issue_3394.jsx.snap @@ -24,6 +24,8 @@ issue_3394.jsx:3:31 lint/nursery/useSortedClasses FIXABLE ━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 1 1 │ <> diff --git a/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/issue_4855.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/issue_4855.jsx.snap index 04d8b525443a..b35946106fb2 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/issue_4855.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/issue_4855.jsx.snap @@ -22,6 +22,8 @@ issue_4855.jsx:1:12 lint/nursery/useSortedClasses FIXABLE ━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 1 │ - Hello
; @@ -44,6 +46,8 @@ issue_4855.jsx:2:12 lint/nursery/useSortedClasses FIXABLE ━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 1 1 │
Hello
; diff --git a/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/issue_5601.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/issue_5601.jsx.snap index 0d5dc60503ed..ff5847418d83 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/issue_5601.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/issue_5601.jsx.snap @@ -39,6 +39,8 @@ issue_5601.jsx:11:12 lint/nursery/useSortedClasses FIXABLE ━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 9 9 │ - with double quotes outside and single quotes inside */ @@ -64,6 +66,8 @@ issue_5601.jsx:17:12 lint/nursery/useSortedClasses FIXABLE ━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 15 15 │ - with single quotes outside and double quotes inside */ diff --git a/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/quoteStyleInFunction.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/quoteStyleInFunction.jsx.snap index 976bb4d0e631..e938768eb304 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/quoteStyleInFunction.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/quoteStyleInFunction.jsx.snap @@ -32,6 +32,8 @@ quoteStyleInFunction.jsx:2:4 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 1 1 │ // functions @@ -57,6 +59,8 @@ quoteStyleInFunction.jsx:3:12 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 1 1 │ // functions @@ -83,6 +87,8 @@ quoteStyleInFunction.jsx:4:23 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 2 2 │ tw("content-[''] absolute"); @@ -109,6 +115,8 @@ quoteStyleInFunction.jsx:4:55 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 2 2 │ tw("content-[''] absolute"); @@ -135,6 +143,8 @@ quoteStyleInFunction.jsx:5:4 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 3 3 │ tw({ base: "content-[''] absolute" }); @@ -160,6 +170,8 @@ quoteStyleInFunction.jsx:8:16 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 6 6 │ @@ -186,6 +198,8 @@ quoteStyleInFunction.jsx:9:24 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 7 7 │ // function in jsx attribute @@ -212,6 +226,8 @@ quoteStyleInFunction.jsx:10:35 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 8 8 │
Hello
; @@ -238,6 +254,8 @@ quoteStyleInFunction.jsx:10:67 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 8 8 │
Hello
; @@ -263,6 +281,8 @@ quoteStyleInFunction.jsx:11:16 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 9 9 │
Hello
; diff --git a/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/sorted.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/sorted.jsx.snap index f77bbfe20852..51ab2d85cf2e 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/sorted.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/sorted.jsx.snap @@ -78,6 +78,8 @@ sorted.jsx:25:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 23 23 │
diff --git a/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/templateLiteralSpace.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/templateLiteralSpace.jsx.snap index e639a1386834..d6bd1872cf50 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/templateLiteralSpace.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/templateLiteralSpace.jsx.snap @@ -28,6 +28,8 @@ templateLiteralSpace.jsx:2:26 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 1 1 │ <> @@ -53,6 +55,8 @@ templateLiteralSpace.jsx:3:15 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 1 1 │ <> @@ -79,6 +83,8 @@ templateLiteralSpace.jsx:4:30 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 2 2 │
@@ -105,6 +111,8 @@ templateLiteralSpace.jsx:5:15 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 3 3 │
@@ -131,6 +139,8 @@ templateLiteralSpace.jsx:6:30 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 4 4 │
@@ -157,6 +167,8 @@ templateLiteralSpace.jsx:6:55 lint/nursery/useSortedClasses FIXABLE ━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 4 4 │
diff --git a/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/unsorted.jsx.snap b/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/unsorted.jsx.snap index 0d3784ef373c..a397a16eadf8 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/unsorted.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useSortedClasses/unsorted.jsx.snap @@ -96,6 +96,8 @@ unsorted.jsx:4:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 2 2 │ {/* attributes */} @@ -122,6 +124,8 @@ unsorted.jsx:5:17 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 3 3 │ {/* SHOULD emit diagnostics (class/className attributes supported by default) */} @@ -148,6 +152,8 @@ unsorted.jsx:11:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 9 9 │ {/* utility sorting */} @@ -174,6 +180,8 @@ unsorted.jsx:12:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 10 10 │ {/* SHOULD emit diagnostics (class attribute supported by default) */} @@ -200,6 +208,8 @@ unsorted.jsx:13:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 11 11 │
@@ -226,6 +236,8 @@ unsorted.jsx:14:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 12 12 │
@@ -252,6 +264,8 @@ unsorted.jsx:15:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 13 13 │
@@ -278,6 +292,8 @@ unsorted.jsx:16:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 14 14 │
@@ -304,6 +320,8 @@ unsorted.jsx:17:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 15 15 │
@@ -330,6 +348,8 @@ unsorted.jsx:18:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 16 16 │
@@ -356,6 +376,8 @@ unsorted.jsx:19:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 17 17 │
@@ -382,6 +404,8 @@ unsorted.jsx:20:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 18 18 │
@@ -408,6 +432,8 @@ unsorted.jsx:23:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 21 21 │ {/* variant sorting */} @@ -434,6 +460,8 @@ unsorted.jsx:24:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 22 22 │ {/* SHOULD emit diagnostics (arbitrary variants not supported yet) */} @@ -460,6 +488,8 @@ unsorted.jsx:25:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 23 23 │
@@ -486,6 +516,8 @@ unsorted.jsx:26:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 24 24 │
@@ -512,6 +544,8 @@ unsorted.jsx:27:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 25 25 │
@@ -538,6 +572,8 @@ unsorted.jsx:29:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 27 27 │
@@ -564,6 +600,8 @@ unsorted.jsx:30:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 28 28 │ {/* TODO: arbitrary variant */} @@ -590,6 +628,8 @@ unsorted.jsx:31:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 29 29 │
@@ -616,6 +656,8 @@ unsorted.jsx:32:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 30 30 │
@@ -642,6 +684,8 @@ unsorted.jsx:35:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 33 33 │ {/* negative value utilities */} @@ -668,6 +712,8 @@ unsorted.jsx:36:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 34 34 │ {/* SHOULD emit diagnostics (negative values like -ml-2 should be detected) */} @@ -694,6 +740,8 @@ unsorted.jsx:37:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 35 35 │
@@ -720,6 +768,8 @@ unsorted.jsx:38:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 36 36 │
@@ -746,6 +796,8 @@ unsorted.jsx:39:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 37 37 │
@@ -772,6 +824,8 @@ unsorted.jsx:40:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 38 38 │
@@ -798,6 +852,8 @@ unsorted.jsx:41:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 39 39 │
@@ -824,6 +880,8 @@ unsorted.jsx:55:13 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 53 53 │ // nested values @@ -850,6 +908,8 @@ unsorted.jsx:56:14 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 54 54 │ /* SHOULD emit diagnostics (class attribute supported by default) */ @@ -876,6 +936,8 @@ unsorted.jsx:57:14 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 55 55 │
; @@ -902,6 +964,8 @@ unsorted.jsx:58:15 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 56 56 │
; @@ -928,6 +992,8 @@ unsorted.jsx:61:3 lint/nursery/useSortedClasses FIXABLE ━━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 59 59 │
@@ -62,6 +64,8 @@ whitespace.jsx:4:16 lint/nursery/useSortedClasses FIXABLE ━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 2 2 │ {/* Test cases for whitespace handling */} @@ -88,6 +92,8 @@ whitespace.jsx:5:16 lint/nursery/useSortedClasses FIXABLE ━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 3 3 │

hello world

@@ -114,6 +120,8 @@ whitespace.jsx:8:16 lint/nursery/useSortedClasses FIXABLE ━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 6 6 │

empty with spaces

@@ -140,6 +148,8 @@ whitespace.jsx:9:16 lint/nursery/useSortedClasses FIXABLE ━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 7 7 │

empty without spaces

@@ -165,6 +175,8 @@ whitespace.jsx:12:18 lint/nursery/useSortedClasses FIXABLE ━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 10 10 │ @@ -191,6 +203,8 @@ whitespace.jsx:13:18 lint/nursery/useSortedClasses FIXABLE ━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 11 11 │ {/* Template literal cases */} @@ -216,6 +230,8 @@ whitespace.jsx:14:18 lint/nursery/useSortedClasses FIXABLE ━━━━━━ i This rule is still being actively worked on, so it may be missing features or have rough edges. Visit https://github.com/biomejs/biome/issues/1274 for more information or to report possible bugs. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Sort the classes. 12 12 │

template literal trailing

diff --git a/crates/biome_js_analyze/tests/specs/nursery/useSpread/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/useSpread/invalid.js.snap index 1326196e8b23..efa1ab7a803d 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useSpread/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useSpread/invalid.js.snap @@ -26,6 +26,8 @@ invalid.js:3:1 lint/nursery/useSpread FIXABLE ━━━━━━━━━━ 4 │ foo.apply(null, [1, 2, 3]); 5 │ foo.apply(undefined, args); + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Use the spread operator. 1 1 │ // should generate diagnostics @@ -49,6 +51,8 @@ invalid.js:4:1 lint/nursery/useSpread FIXABLE ━━━━━━━━━━ 5 │ foo.apply(undefined, args); 6 │ obj.foo.apply(obj, args); + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Use the spread operator. 2 2 │ @@ -73,6 +77,8 @@ invalid.js:5:1 lint/nursery/useSpread FIXABLE ━━━━━━━━━━ 6 │ obj.foo.apply(obj, args); 7 │ + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Use the spread operator. 3 3 │ foo.apply(null, args); @@ -96,6 +102,8 @@ invalid.js:6:1 lint/nursery/useSpread FIXABLE ━━━━━━━━━━ │ ^^^^^^^^^^^^^^^^^^^^^^^^ 7 │ + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Use the spread operator. 4 4 │ foo.apply(null, [1, 2, 3]); diff --git a/crates/biome_js_analyze/tests/specs/nursery/useVueConsistentDefinePropsDeclaration/invalid-a.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/useVueConsistentDefinePropsDeclaration/invalid-a.vue.snap index 5b3412dc8b5e..65496fbe64b1 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useVueConsistentDefinePropsDeclaration/invalid-a.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useVueConsistentDefinePropsDeclaration/invalid-a.vue.snap @@ -1,6 +1,5 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -assertion_line: 152 expression: invalid-a.vue --- # Input @@ -26,5 +25,7 @@ invalid-a.vue:1:15 lint/nursery/useVueConsistentDefinePropsDeclaration ━━━ i It should be defined using type declaration like defineProps<...>(). + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useVueConsistentDefinePropsDeclaration/invalid-b.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/useVueConsistentDefinePropsDeclaration/invalid-b.vue.snap index 743702c7b61c..458d777caa66 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useVueConsistentDefinePropsDeclaration/invalid-b.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useVueConsistentDefinePropsDeclaration/invalid-b.vue.snap @@ -1,6 +1,5 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -assertion_line: 152 expression: invalid-b.vue --- # Input @@ -26,5 +25,7 @@ invalid-b.vue:1:15 lint/nursery/useVueConsistentDefinePropsDeclaration ━━━ i It should be defined using runtime declaration like defineProps(...). + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useVueConsistentDefinePropsDeclaration/invalid-c.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/useVueConsistentDefinePropsDeclaration/invalid-c.vue.snap index 8daa6dc49be3..5562dea7ed69 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useVueConsistentDefinePropsDeclaration/invalid-c.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useVueConsistentDefinePropsDeclaration/invalid-c.vue.snap @@ -1,6 +1,5 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -assertion_line: 152 expression: invalid-c.vue --- # Input @@ -26,5 +25,7 @@ invalid-c.vue:1:15 lint/nursery/useVueConsistentDefinePropsDeclaration ━━━ i It should be defined using type declaration like defineProps<...>(). + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useVueConsistentDefinePropsDeclaration/invalid-d.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/useVueConsistentDefinePropsDeclaration/invalid-d.vue.snap index aa17489bfe3e..bf792d9b913a 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useVueConsistentDefinePropsDeclaration/invalid-d.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useVueConsistentDefinePropsDeclaration/invalid-d.vue.snap @@ -1,6 +1,5 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -assertion_line: 152 expression: invalid-d.vue --- # Input @@ -30,5 +29,7 @@ invalid-d.vue:1:15 lint/nursery/useVueConsistentDefinePropsDeclaration ━━━ i It should be defined using type declaration like defineProps<...>(). + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-a.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-a.vue.snap index 3dd7e4b44485..920f91ffd71e 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-a.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-a.vue.snap @@ -39,6 +39,8 @@ invalid-a.vue:12:1 lint/nursery/useVueDefineMacrosOrder FIXABLE ━━━━ i and be placed before any non-macro statements, except for type declarations, imports, exports or debugger statements. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Reorder macro defineModel. 8 8 │ diff --git a/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-b.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-b.vue.snap index 6c041bf3f529..73996162d856 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-b.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-b.vue.snap @@ -26,6 +26,8 @@ invalid-b.vue:3:7 lint/nursery/useVueDefineMacrosOrder FIXABLE ━━━━━ i and be placed before any non-macro statements, except for type declarations, imports, exports or debugger statements. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Reorder macro defineEmits. 1 │ - const·count·=·ref(0) diff --git a/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-c.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-c.vue.snap index 409c051bd63b..121e11e32ee3 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-c.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-c.vue.snap @@ -26,6 +26,8 @@ invalid-c.vue:3:1 lint/nursery/useVueDefineMacrosOrder FIXABLE ━━━━━ i and be placed before any non-macro statements, except for type declarations, imports, exports or debugger statements. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Reorder macro defineEmits. 1 │ - ref(0) diff --git a/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-custom.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-custom.vue.snap index 7cdaabb3ad0f..9b841d2e93f0 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-custom.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-custom.vue.snap @@ -42,6 +42,8 @@ invalid-custom.vue:16:1 lint/nursery/useVueDefineMacrosOrder FIXABLE ━━━ i and be placed before any non-macro statements, except for type declarations, imports, exports or debugger statements. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Reorder macro definePage. 9 9 │ debugger diff --git a/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-single-a.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-single-a.vue.snap index 1c88dd852f51..48eaf8b8fdad 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-single-a.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-single-a.vue.snap @@ -22,5 +22,7 @@ invalid-single-a.vue:1:70 lint/nursery/useVueDefineMacrosOrder ━━━━━ i and be placed before any non-macro statements, except for type declarations, imports, exports or debugger statements. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-single.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-single.vue.snap index 3d7b790a3a34..24ee3d87886f 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-single.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-single.vue.snap @@ -37,5 +37,7 @@ invalid-single.vue:11:31 lint/nursery/useVueDefineMacrosOrder ━━━━━━ i and be placed before any non-macro statements, except for type declarations, imports, exports or debugger statements. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-with-defaults.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-with-defaults.vue.snap index 877b006e82f5..5935f288be23 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-with-defaults.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid-with-defaults.vue.snap @@ -37,6 +37,8 @@ invalid-with-defaults.vue:12:7 lint/nursery/useVueDefineMacrosOrder FIXABLE i and be placed before any non-macro statements, except for type declarations, imports, exports or debugger statements. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Reorder macro defineProps. 8 8 │ diff --git a/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid.vue.snap index 530c173a03ef..465e9b2303df 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useVueDefineMacrosOrder/invalid.vue.snap @@ -40,6 +40,8 @@ invalid.vue:14:1 lint/nursery/useVueDefineMacrosOrder FIXABLE ━━━━━ i and be placed before any non-macro statements, except for type declarations, imports, exports or debugger statements. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + i Unsafe fix: Reorder macro defineProps. 8 8 │ diff --git a/crates/biome_js_analyze/tests/specs/nursery/useVueMultiWordComponentNames/invalid-has-name.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/useVueMultiWordComponentNames/invalid-has-name.vue.snap index 1d2a45112592..0614cd5ba87f 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useVueMultiWordComponentNames/invalid-has-name.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useVueMultiWordComponentNames/invalid-has-name.vue.snap @@ -26,5 +26,7 @@ invalid-has-name.vue:2:8 lint/nursery/useVueMultiWordComponentNames ━━━━ i Rename the component to have 2 or more words (e.g. "FooItem", or "BarView"). + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useVueMultiWordComponentNames/invalid.js.snap b/crates/biome_js_analyze/tests/specs/nursery/useVueMultiWordComponentNames/invalid.js.snap index 0c38eb817461..bab9a07f4519 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useVueMultiWordComponentNames/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useVueMultiWordComponentNames/invalid.js.snap @@ -37,6 +37,8 @@ invalid.js:5:8 lint/nursery/useVueMultiWordComponentNames ━━━━━━━ i Rename the component to have 2 or more words (e.g. "FooItem", or "BarView"). + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` @@ -55,5 +57,7 @@ invalid.js:13:19 lint/nursery/useVueMultiWordComponentNames ━━━━━━ i Rename the component to have 2 or more words (e.g. "FooItem", or "BarView"). + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_js_analyze/tests/specs/nursery/useVueMultiWordComponentNames/invalid.vue.snap b/crates/biome_js_analyze/tests/specs/nursery/useVueMultiWordComponentNames/invalid.vue.snap index 835271be6f40..b011b7f343da 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useVueMultiWordComponentNames/invalid.vue.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useVueMultiWordComponentNames/invalid.vue.snap @@ -26,5 +26,7 @@ invalid.vue:2:8 lint/nursery/useVueMultiWordComponentNames ━━━━━━━ i The component name was inferred from the file name. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/bundleDependencies/package.json.snap b/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/bundleDependencies/package.json.snap index dc902229b42b..478df2ceb602 100644 --- a/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/bundleDependencies/package.json.snap +++ b/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/bundleDependencies/package.json.snap @@ -39,5 +39,7 @@ package.json:6:5 lint/nursery/noDuplicateDependencies ━━━━━━━━ i This can lead to package manager issues and confusion for other developers. To resolve this, remove one of the listings. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/dependencies-devDependencies/package.json.snap b/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/dependencies-devDependencies/package.json.snap index b2b50cd84176..9fbd3f202293 100644 --- a/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/dependencies-devDependencies/package.json.snap +++ b/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/dependencies-devDependencies/package.json.snap @@ -42,5 +42,7 @@ package.json:8:5 lint/nursery/noDuplicateDependencies ━━━━━━━━ i This can lead to package manager issues and confusion for other developers. To resolve this, remove one of the listings. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/dependencies-optionalDependencies/package.json.snap b/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/dependencies-optionalDependencies/package.json.snap index 26bef5945591..45852dda0354 100644 --- a/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/dependencies-optionalDependencies/package.json.snap +++ b/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/dependencies-optionalDependencies/package.json.snap @@ -42,5 +42,7 @@ package.json:8:5 lint/nursery/noDuplicateDependencies ━━━━━━━━ i This can lead to package manager issues and confusion for other developers. To resolve this, remove one of the listings. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/dependencies-peerDependencies/package.json.snap b/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/dependencies-peerDependencies/package.json.snap index 44e1f6f839d0..c1a9cdd86917 100644 --- a/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/dependencies-peerDependencies/package.json.snap +++ b/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/dependencies-peerDependencies/package.json.snap @@ -42,5 +42,7 @@ package.json:8:5 lint/nursery/noDuplicateDependencies ━━━━━━━━ i This can lead to package manager issues and confusion for other developers. To resolve this, remove one of the listings. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/dependencies/package.json.snap b/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/dependencies/package.json.snap index a87fca847d71..bb9e1c101baf 100644 --- a/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/dependencies/package.json.snap +++ b/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/dependencies/package.json.snap @@ -39,5 +39,7 @@ package.json:6:5 lint/nursery/noDuplicateDependencies ━━━━━━━━ i This can lead to package manager issues and confusion for other developers. To resolve this, remove one of the listings. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/optionalDependencies-peerDependencies/package.json.snap b/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/optionalDependencies-peerDependencies/package.json.snap index 272f7997d18c..dfb0db0c4a15 100644 --- a/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/optionalDependencies-peerDependencies/package.json.snap +++ b/crates/biome_json_analyze/tests/specs/nursery/noDuplicateDependencies/invalid/optionalDependencies-peerDependencies/package.json.snap @@ -42,5 +42,7 @@ package.json:4:5 lint/nursery/noDuplicateDependencies ━━━━━━━━ i This can lead to package manager issues and confusion for other developers. To resolve this, remove one of the listings. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_json_analyze/tests/specs/nursery/useRequiredScripts/invalid/missing-all-scripts/package.json.snap b/crates/biome_json_analyze/tests/specs/nursery/useRequiredScripts/invalid/missing-all-scripts/package.json.snap index 3fac73824aa0..f8feff4f91b4 100644 --- a/crates/biome_json_analyze/tests/specs/nursery/useRequiredScripts/invalid/missing-all-scripts/package.json.snap +++ b/crates/biome_json_analyze/tests/specs/nursery/useRequiredScripts/invalid/missing-all-scripts/package.json.snap @@ -31,5 +31,7 @@ package.json:3:3 lint/nursery/useRequiredScripts ━━━━━━━━━━ i Consistent scripts across packages ensure that each can be run reliably from the root of our project. Add the missing scripts to your package.json. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_json_analyze/tests/specs/nursery/useRequiredScripts/invalid/missing-multiple-scripts/package.json.snap b/crates/biome_json_analyze/tests/specs/nursery/useRequiredScripts/invalid/missing-multiple-scripts/package.json.snap index 30516f0e73cc..2bfd4ebfb091 100644 --- a/crates/biome_json_analyze/tests/specs/nursery/useRequiredScripts/invalid/missing-multiple-scripts/package.json.snap +++ b/crates/biome_json_analyze/tests/specs/nursery/useRequiredScripts/invalid/missing-multiple-scripts/package.json.snap @@ -31,5 +31,7 @@ package.json:3:3 lint/nursery/useRequiredScripts ━━━━━━━━━━ i Consistent scripts across packages ensure that each can be run reliably from the root of our project. Add the missing scripts to your package.json. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_json_analyze/tests/specs/nursery/useRequiredScripts/invalid/missing-single-script/package.json.snap b/crates/biome_json_analyze/tests/specs/nursery/useRequiredScripts/invalid/missing-single-script/package.json.snap index bc43e59bfbbb..2fe1cc9eb7be 100644 --- a/crates/biome_json_analyze/tests/specs/nursery/useRequiredScripts/invalid/missing-single-script/package.json.snap +++ b/crates/biome_json_analyze/tests/specs/nursery/useRequiredScripts/invalid/missing-single-script/package.json.snap @@ -31,5 +31,7 @@ package.json:3:3 lint/nursery/useRequiredScripts ━━━━━━━━━━ i Consistent scripts across packages ensure that each can be run reliably from the root of our project. Add the missing script to your package.json. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ``` diff --git a/crates/biome_json_analyze/tests/specs/nursery/useRequiredScripts/invalid/no-scripts-section/package.json.snap b/crates/biome_json_analyze/tests/specs/nursery/useRequiredScripts/invalid/no-scripts-section/package.json.snap index 63b4383f45bb..ec1b22d66464 100644 --- a/crates/biome_json_analyze/tests/specs/nursery/useRequiredScripts/invalid/no-scripts-section/package.json.snap +++ b/crates/biome_json_analyze/tests/specs/nursery/useRequiredScripts/invalid/no-scripts-section/package.json.snap @@ -27,5 +27,7 @@ package.json:1:1 lint/nursery/useRequiredScripts ━━━━━━━━━━ i Consistent scripts across packages ensure that each can be run reliably from the root of our project. Add the missing scripts to your package.json. + i This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information. + ```