Skip to content

Commit 88b40f6

Browse files
authored
Enable ref validation in linter (facebook#34044)
--- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/34044). * facebook#34027 * __->__ facebook#34044
1 parent 04a7a61 commit 88b40f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/packages/eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const COMPILER_OPTIONS: Partial<PluginOptions> = {
101101
// Don't emit errors on Flow suppressions--Flow already gave a signal
102102
flowSuppressions: false,
103103
environment: validateEnvironmentConfig({
104-
validateRefAccessDuringRender: false,
104+
validateRefAccessDuringRender: true,
105105
validateNoSetStateInRender: true,
106106
validateNoSetStateInEffects: true,
107107
validateNoJSXInTryStatements: true,

packages/eslint-plugin-react-hooks/src/rules/ReactCompiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const COMPILER_OPTIONS: Partial<PluginOptions> = {
103103
// Don't emit errors on Flow suppressions--Flow already gave a signal
104104
flowSuppressions: false,
105105
environment: validateEnvironmentConfig({
106-
validateRefAccessDuringRender: false,
106+
validateRefAccessDuringRender: true,
107107
validateNoSetStateInRender: true,
108108
validateNoSetStateInEffects: true,
109109
validateNoJSXInTryStatements: true,

0 commit comments

Comments
 (0)