File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
compiler/packages/eslint-plugin-react-compiler/src/rules
packages/eslint-plugin-react-hooks/src/rules Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,12 @@ const COMPILER_OPTIONS: Partial<PluginOptions> = {
107
107
flowSuppressions : false ,
108
108
environment : validateEnvironmentConfig ( {
109
109
validateRefAccessDuringRender : false ,
110
+ validateNoSetStateInRender : true ,
111
+ validateNoSetStateInEffects : true ,
112
+ validateNoJSXInTryStatements : true ,
113
+ validateNoImpureFunctionsInRender : true ,
114
+ validateStaticComponents : true ,
115
+ validateNoFreezingKnownMutableFunctions : true ,
110
116
} ) ,
111
117
} ;
112
118
Original file line number Diff line number Diff line change @@ -109,6 +109,12 @@ const COMPILER_OPTIONS: Partial<PluginOptions> = {
109
109
flowSuppressions : false ,
110
110
environment : validateEnvironmentConfig ( {
111
111
validateRefAccessDuringRender : false ,
112
+ validateNoSetStateInRender : true ,
113
+ validateNoSetStateInEffects : true ,
114
+ validateNoJSXInTryStatements : true ,
115
+ validateNoImpureFunctionsInRender : true ,
116
+ validateStaticComponents : true ,
117
+ validateNoFreezingKnownMutableFunctions : true ,
112
118
} ) ,
113
119
} ;
114
120
You can’t perform that action at this time.
0 commit comments