From 5576e342661f9dd57de9bd76f4bc9f5ef3947840 Mon Sep 17 00:00:00 2001 From: Victorien Elvinger Date: Sat, 24 Jun 2023 13:58:26 +0200 Subject: [PATCH] refactor(rome_js_analyze): set version for noUselessConstructor --- .../src/analyzers/complexity/no_useless_constructor.rs | 2 +- website/src/pages/lint/rules/noUselessConstructor.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/rome_js_analyze/src/analyzers/complexity/no_useless_constructor.rs b/crates/rome_js_analyze/src/analyzers/complexity/no_useless_constructor.rs index d4288017378..336ff1d5ec5 100644 --- a/crates/rome_js_analyze/src/analyzers/complexity/no_useless_constructor.rs +++ b/crates/rome_js_analyze/src/analyzers/complexity/no_useless_constructor.rs @@ -69,7 +69,7 @@ declare_rule! { /// } /// ``` pub(crate) NoUselessConstructor { - version: "next", + version: "12.1.0", name: "noUselessConstructor", recommended: true, } diff --git a/website/src/pages/lint/rules/noUselessConstructor.md b/website/src/pages/lint/rules/noUselessConstructor.md index 85ef255c75f..0b21c8bc348 100644 --- a/website/src/pages/lint/rules/noUselessConstructor.md +++ b/website/src/pages/lint/rules/noUselessConstructor.md @@ -3,7 +3,7 @@ title: Lint Rule noUselessConstructor parent: lint/rules/index --- -# noUselessConstructor (since vnext) +# noUselessConstructor (since v12.1.0) > This rule is recommended by Rome.