docs(noConstructorReturn): fix rule description
Fixes
MODIFY
crates/rome_service/src/configuration/linter/rules.rs
crates/rome_service/src/configuration/linter/rules.rs
@@ -731,7 +731,7 @@ struct NurserySchema {
no_conditional_assignment: Option<RuleConfiguration>,
#[doc = "Disallow TypeScript const enum"]
no_const_enum: Option<RuleConfiguration>,
- #[doc = "Disallow returning a value from a constructor"]
+ #[doc = "Disallow returning a value from a constructor."]
no_constructor_return: Option<RuleConfiguration>,
#[doc = "Enforces that no distracting elements are used."]
no_distracting_elements: Option<RuleConfiguration>,

MODIFY
editors/vscode/configuration_schema.json
editors/vscode/configuration_schema.json
]
},
"noConstructorReturn": {
- "description": "Disallow returning a value from a constructor",
+ "description": "Disallow returning a value from a constructor.",
"anyOf": [
{
"$ref": "#/definitions/RuleConfiguration"

MODIFY
npm/backend-jsonrpc/src/workspace.ts
npm/backend-jsonrpc/src/workspace.ts
@@ -302,7 +302,7 @@ export interface Nursery {
*/
noConstEnum?: RuleConfiguration;
/**
- * Disallow returning a value from a constructor
+ * Disallow returning a value from a constructor.
*/
noConstructorReturn?: RuleConfiguration;
/**

MODIFY
npm/rome/configuration_schema.json
npm/rome/configuration_schema.json
]
},
"noConstructorReturn": {
- "description": "Disallow returning a value from a constructor",
+ "description": "Disallow returning a value from a constructor.",
"anyOf": [
{
"$ref": "#/definitions/RuleConfiguration"

MODIFY
website/src/pages/lint/rules/index.mdx
website/src/pages/lint/rules/index.mdx
@@ -501,7 +501,7 @@ Disallow TypeScript <code>const enum</code>
<h3 data-toc-exclude id="noConstructorReturn">
<a href="/lint/rules/noConstructorReturn">noConstructorReturn</a>
</h3>
-Disallow returning a value from a constructor
+Disallow returning a value from a <code>constructor</code>.
</section>
<section class="rule">
<h3 data-toc-exclude id="noDistractingElements">

docs(noConstructorReturn): fix rule description (#4015)

Fixes https://github.com/rome/tools/issues/4005