From 93030e8af90e8b54d278dbb5da47dc065d48749d Mon Sep 17 00:00:00 2001 From: Dunqing Date: Sun, 12 May 2024 10:55:48 +0800 Subject: [PATCH] chore(linter): change the category of all react-perf rules to perf (#3243) close: #3242 --- crates/oxc_linter/src/rules/react_perf/jsx_no_jsx_as_prop.rs | 2 +- .../oxc_linter/src/rules/react_perf/jsx_no_new_array_as_prop.rs | 2 +- .../src/rules/react_perf/jsx_no_new_function_as_prop.rs | 2 +- .../src/rules/react_perf/jsx_no_new_object_as_prop.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/oxc_linter/src/rules/react_perf/jsx_no_jsx_as_prop.rs b/crates/oxc_linter/src/rules/react_perf/jsx_no_jsx_as_prop.rs index 0f793f268..243646a67 100644 --- a/crates/oxc_linter/src/rules/react_perf/jsx_no_jsx_as_prop.rs +++ b/crates/oxc_linter/src/rules/react_perf/jsx_no_jsx_as_prop.rs @@ -34,7 +34,7 @@ declare_oxc_lint!( /// /// ``` JsxNoJsxAsProp, - correctness + perf ); impl Rule for JsxNoJsxAsProp { diff --git a/crates/oxc_linter/src/rules/react_perf/jsx_no_new_array_as_prop.rs b/crates/oxc_linter/src/rules/react_perf/jsx_no_new_array_as_prop.rs index ba5071378..7eb3e88fa 100644 --- a/crates/oxc_linter/src/rules/react_perf/jsx_no_new_array_as_prop.rs +++ b/crates/oxc_linter/src/rules/react_perf/jsx_no_new_array_as_prop.rs @@ -42,7 +42,7 @@ declare_oxc_lint!( /// /// ``` JsxNoNewArrayAsProp, - correctness + perf ); impl Rule for JsxNoNewArrayAsProp { diff --git a/crates/oxc_linter/src/rules/react_perf/jsx_no_new_function_as_prop.rs b/crates/oxc_linter/src/rules/react_perf/jsx_no_new_function_as_prop.rs index 0ef5419cc..c817774fc 100644 --- a/crates/oxc_linter/src/rules/react_perf/jsx_no_new_function_as_prop.rs +++ b/crates/oxc_linter/src/rules/react_perf/jsx_no_new_function_as_prop.rs @@ -37,7 +37,7 @@ declare_oxc_lint!( /// /// ``` JsxNoNewFunctionAsProp, - correctness + perf ); impl Rule for JsxNoNewFunctionAsProp { diff --git a/crates/oxc_linter/src/rules/react_perf/jsx_no_new_object_as_prop.rs b/crates/oxc_linter/src/rules/react_perf/jsx_no_new_object_as_prop.rs index 62c82bcd7..3cc9e3e55 100644 --- a/crates/oxc_linter/src/rules/react_perf/jsx_no_new_object_as_prop.rs +++ b/crates/oxc_linter/src/rules/react_perf/jsx_no_new_object_as_prop.rs @@ -41,7 +41,7 @@ declare_oxc_lint!( /// /// ``` JsxNoNewObjectAsProp, - correctness + perf ); impl Rule for JsxNoNewObjectAsProp {