diff --git a/crates/biome_js_analyze/src/lint/correctness/no_constructor_return.rs b/crates/biome_js_analyze/src/lint/correctness/no_constructor_return.rs index d7062e887270..97fde5ec7b39 100644 --- a/crates/biome_js_analyze/src/lint/correctness/no_constructor_return.rs +++ b/crates/biome_js_analyze/src/lint/correctness/no_constructor_return.rs @@ -81,6 +81,6 @@ impl Rule for NoConstructorReturn { ).detail( constructor.range(), "The constructor is here:" - ).note("Returning a value from a constructor is ignored.")) + ).note("Returning a value from a constructor may confuse users of the class.")) } } diff --git a/crates/biome_js_analyze/tests/specs/correctness/noConstructorReturn/invalid.js.snap b/crates/biome_js_analyze/tests/specs/correctness/noConstructorReturn/invalid.js.snap index b3f6f5567ed2..59c756c9119c 100644 --- a/crates/biome_js_analyze/tests/specs/correctness/noConstructorReturn/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/correctness/noConstructorReturn/invalid.js.snap @@ -58,7 +58,7 @@ invalid.js:3:3 lint/correctness/noConstructorReturn ━━━━━━━━━ 5 │ } 6 │ - i Returning a value from a constructor is ignored. + i Returning a value from a constructor may confuse users of the class. ``` @@ -86,7 +86,7 @@ invalid.js:9:3 lint/correctness/noConstructorReturn ━━━━━━━━━ 11 │ } 12 │ - i Returning a value from a constructor is ignored. + i Returning a value from a constructor may confuse users of the class. ``` @@ -115,7 +115,7 @@ invalid.js:16:3 lint/correctness/noConstructorReturn ━━━━━━━━━ 18 │ } 19 │ - i Returning a value from a constructor is ignored. + i Returning a value from a constructor may confuse users of the class. ``` @@ -146,9 +146,7 @@ invalid.js:24:4 lint/correctness/noConstructorReturn ━━━━━━━━━ │ ^ 28 │ } - i Returning a value from a constructor is ignored. + i Returning a value from a constructor may confuse users of the class. ``` - -