mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Enable hooks validation in eslint
This commit is contained in:
1 parent
0c0bedd377
commit
3639704f2b
1 file changed
+1
-1
@@ -62,7 +62,7 @@ const COMPILER_OPTIONS: Partial<PluginOptions> = {
|
||||
compilationMode: "infer",
|
||||
panicThreshold: "CRITICAL_ERRORS",
|
||||
environment: {
|
||||
validateHooksUsage: false,
|
||||
validateHooksUsage: true,
|
||||
validateNoSetStateInRender: true,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user