mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Enable ref validation in linter (#34044)
--- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/34044). * #34027 * __->__ #34044
This commit is contained in:
parent
04a7a61918
commit
88b40f6e41
|
|
@ -101,7 +101,7 @@ const COMPILER_OPTIONS: Partial<PluginOptions> = {
|
|||
// Don't emit errors on Flow suppressions--Flow already gave a signal
|
||||
flowSuppressions: false,
|
||||
environment: validateEnvironmentConfig({
|
||||
validateRefAccessDuringRender: false,
|
||||
validateRefAccessDuringRender: true,
|
||||
validateNoSetStateInRender: true,
|
||||
validateNoSetStateInEffects: true,
|
||||
validateNoJSXInTryStatements: true,
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ const COMPILER_OPTIONS: Partial<PluginOptions> = {
|
|||
// Don't emit errors on Flow suppressions--Flow already gave a signal
|
||||
flowSuppressions: false,
|
||||
environment: validateEnvironmentConfig({
|
||||
validateRefAccessDuringRender: false,
|
||||
validateRefAccessDuringRender: true,
|
||||
validateNoSetStateInRender: true,
|
||||
validateNoSetStateInEffects: true,
|
||||
validateNoJSXInTryStatements: true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user