diff --git a/compiler/packages/eslint-plugin-react-hooks/src/rules/ExhaustiveDeps.ts b/compiler/packages/eslint-plugin-react-hooks/src/rules/ExhaustiveDeps.ts index 1b00597572..5d79b33970 100644 --- a/compiler/packages/eslint-plugin-react-hooks/src/rules/ExhaustiveDeps.ts +++ b/compiler/packages/eslint-plugin-react-hooks/src/rules/ExhaustiveDeps.ts @@ -2056,10 +2056,7 @@ function isAncestorNodeOf(a: Node, b: Node): boolean { } function isUseEffectEventIdentifier(node: Node): boolean { - if (__EXPERIMENTAL__) { - return node.type === 'Identifier' && node.name === 'useEffectEvent'; - } - return false; + return node.type === 'Identifier' && node.name === 'useEffectEvent'; } function getUnknownDependenciesMessage(reactiveHookName: string): string { diff --git a/compiler/packages/eslint-plugin-react-hooks/src/rules/RulesOfHooks.ts b/compiler/packages/eslint-plugin-react-hooks/src/rules/RulesOfHooks.ts index 0ab0c5ff21..e67df2dd40 100644 --- a/compiler/packages/eslint-plugin-react-hooks/src/rules/RulesOfHooks.ts +++ b/compiler/packages/eslint-plugin-react-hooks/src/rules/RulesOfHooks.ts @@ -109,10 +109,7 @@ function isInsideDoWhileLoop(node: Node | undefined): node is DoWhileStatement { } function isUseEffectEventIdentifier(node: Node): boolean { - if (__EXPERIMENTAL__) { - return node.type === 'Identifier' && node.name === 'useEffectEvent'; - } - return false; + return node.type === 'Identifier' && node.name === 'useEffectEvent'; } function isUseIdentifier(node: Node): boolean {