diff --git a/crates/oxc_linter/src/rules/eslint/no_empty_function.rs b/crates/oxc_linter/src/rules/eslint/no_empty_function.rs index 0ed81d80c75f2..aa1981abebb66 100644 --- a/crates/oxc_linter/src/rules/eslint/no_empty_function.rs +++ b/crates/oxc_linter/src/rules/eslint/no_empty_function.rs @@ -87,8 +87,8 @@ impl TryFrom<&str> for Allowed { "constructors" | "constructor" => Ok(Self::Constructors), "asyncFunctions" | "async-functions" => Ok(Self::AsyncFunctions), "asyncMethods" | "async-methods" => Ok(Self::AsyncMethods), - "private-constructors" | "privateConstructors" => Ok(Self::PrivateConstructor), - "protected-constructors" | "protectedConstructors" => Ok(Self::ProtectedConstructor), + "privateConstructors" | "private-constructors" => Ok(Self::PrivateConstructor), + "protectedConstructors" | "protected-constructors" => Ok(Self::ProtectedConstructor), "decoratedFunctions" | "decorated-functions" => Ok(Self::DecoratedFunction), "overrideMethods" | "override-methods" => Ok(Self::OverrideMethod), _ => Err(()),