@@ -1429,6 +1429,16 @@ export interface RuleOptions {
1429
1429
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
1430
1430
*/
1431
1431
'no-autofix/@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
1432
+ /**
1433
+ * disallow direct calls to the 'set' function of 'useState' in 'useEffect'
1434
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
1435
+ */
1436
+ 'no-autofix/@eslint-react/hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
1437
+ /**
1438
+ * disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
1439
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
1440
+ */
1441
+ 'no-autofix/@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
1432
1442
/**
1433
1443
* disallow function calls in 'useState' that aren't wrapped in an initializer function
1434
1444
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
@@ -7567,6 +7577,16 @@ export interface RuleOptions {
7567
7577
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
7568
7578
*/
7569
7579
'no-autofix/react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
7580
+ /**
7581
+ * disallow direct calls to the 'set' function of 'useState' in 'useEffect'
7582
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
7583
+ */
7584
+ 'no-autofix/react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
7585
+ /**
7586
+ * disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
7587
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
7588
+ */
7589
+ 'no-autofix/react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
7570
7590
/**
7571
7591
* disallow function calls in 'useState' that aren't wrapped in an initializer function
7572
7592
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
@@ -10746,6 +10766,16 @@ export interface RuleOptions {
10746
10766
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
10747
10767
*/
10748
10768
'react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
10769
+ /**
10770
+ * disallow direct calls to the 'set' function of 'useState' in 'useEffect'
10771
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
10772
+ */
10773
+ 'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
10774
+ /**
10775
+ * disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
10776
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
10777
+ */
10778
+ 'react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
10749
10779
/**
10750
10780
* disallow function calls in 'useState' that aren't wrapped in an initializer function
10751
10781
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
0 commit comments