@anolilab/eslint-config 16.2.15 → 16.2.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -3668,10 +3668,47 @@ interface RuleOptions {
3668
3668
  */
3669
3669
  'react-x/use-jsx-vars'?: Linter.RuleEntry<[]>
3670
3670
  /**
3671
- * Catch unnecessary React useEffect hooks.
3672
- * @see https://react.dev/learn/you-might-not-need-an-effect
3671
+ * Disallow chaining state changes in an effect.
3672
+ * @see https://react.dev/learn/you-might-not-need-an-effect#chains-of-computations
3673
3673
  */
3674
- 'react-you-might-not-need-an-effect/you-might-not-need-an-effect'?: Linter.RuleEntry<[]>
3674
+ 'react-you-might-not-need-an-effect/no-chain-state-updates'?: Linter.RuleEntry<[]>
3675
+ /**
3676
+ * Disallow storing derived state in an effect.
3677
+ * @see https://react.dev/learn/you-might-not-need-an-effect#updating-state-based-on-props-or-state
3678
+ */
3679
+ 'react-you-might-not-need-an-effect/no-derived-state'?: Linter.RuleEntry<[]>
3680
+ /**
3681
+ * Disallow empty React effects.
3682
+ */
3683
+ 'react-you-might-not-need-an-effect/no-empty-effect'?: Linter.RuleEntry<[]>
3684
+ /**
3685
+ * Disallow using state and an effect as an event handler.
3686
+ * @see https://react.dev/learn/you-might-not-need-an-effect#sharing-logic-between-event-handlers
3687
+ */
3688
+ 'react-you-might-not-need-an-effect/no-event-handler'?: Linter.RuleEntry<[]>
3689
+ /**
3690
+ * Disallow initializing state in an effect.
3691
+ */
3692
+ 'react-you-might-not-need-an-effect/no-initialize-state'?: Linter.RuleEntry<[]>
3693
+ /**
3694
+ * Disallow effects that only use props.
3695
+ */
3696
+ 'react-you-might-not-need-an-effect/no-manage-parent'?: Linter.RuleEntry<[]>
3697
+ /**
3698
+ * Disallow passing data to parents in an effect.
3699
+ * @see https://react.dev/learn/you-might-not-need-an-effect#passing-data-to-the-parent
3700
+ */
3701
+ 'react-you-might-not-need-an-effect/no-pass-data-to-parent'?: Linter.RuleEntry<[]>
3702
+ /**
3703
+ * Disallow passing live state to parent components in an effect.
3704
+ * @see https://react.dev/learn/you-might-not-need-an-effect#notifying-parent-components-about-state-changes
3705
+ */
3706
+ 'react-you-might-not-need-an-effect/no-pass-live-state-to-parent'?: Linter.RuleEntry<[]>
3707
+ /**
3708
+ * Disallow resetting all state in an effect when a prop changes.
3709
+ * @see https://react.dev/learn/you-might-not-need-an-effect#resetting-all-state-when-a-prop-changes
3710
+ */
3711
+ 'react-you-might-not-need-an-effect/no-reset-all-state-when-a-prop-changes'?: Linter.RuleEntry<[]>
3675
3712
  /**
3676
3713
  * Enforces consistent naming for boolean props
3677
3714
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/boolean-prop-naming.md
package/dist/index.d.mts CHANGED
@@ -3668,10 +3668,47 @@ interface RuleOptions {
3668
3668
  */
3669
3669
  'react-x/use-jsx-vars'?: Linter.RuleEntry<[]>
3670
3670
  /**
3671
- * Catch unnecessary React useEffect hooks.
3672
- * @see https://react.dev/learn/you-might-not-need-an-effect
3671
+ * Disallow chaining state changes in an effect.
3672
+ * @see https://react.dev/learn/you-might-not-need-an-effect#chains-of-computations
3673
3673
  */
3674
- 'react-you-might-not-need-an-effect/you-might-not-need-an-effect'?: Linter.RuleEntry<[]>
3674
+ 'react-you-might-not-need-an-effect/no-chain-state-updates'?: Linter.RuleEntry<[]>
3675
+ /**
3676
+ * Disallow storing derived state in an effect.
3677
+ * @see https://react.dev/learn/you-might-not-need-an-effect#updating-state-based-on-props-or-state
3678
+ */
3679
+ 'react-you-might-not-need-an-effect/no-derived-state'?: Linter.RuleEntry<[]>
3680
+ /**
3681
+ * Disallow empty React effects.
3682
+ */
3683
+ 'react-you-might-not-need-an-effect/no-empty-effect'?: Linter.RuleEntry<[]>
3684
+ /**
3685
+ * Disallow using state and an effect as an event handler.
3686
+ * @see https://react.dev/learn/you-might-not-need-an-effect#sharing-logic-between-event-handlers
3687
+ */
3688
+ 'react-you-might-not-need-an-effect/no-event-handler'?: Linter.RuleEntry<[]>
3689
+ /**
3690
+ * Disallow initializing state in an effect.
3691
+ */
3692
+ 'react-you-might-not-need-an-effect/no-initialize-state'?: Linter.RuleEntry<[]>
3693
+ /**
3694
+ * Disallow effects that only use props.
3695
+ */
3696
+ 'react-you-might-not-need-an-effect/no-manage-parent'?: Linter.RuleEntry<[]>
3697
+ /**
3698
+ * Disallow passing data to parents in an effect.
3699
+ * @see https://react.dev/learn/you-might-not-need-an-effect#passing-data-to-the-parent
3700
+ */
3701
+ 'react-you-might-not-need-an-effect/no-pass-data-to-parent'?: Linter.RuleEntry<[]>
3702
+ /**
3703
+ * Disallow passing live state to parent components in an effect.
3704
+ * @see https://react.dev/learn/you-might-not-need-an-effect#notifying-parent-components-about-state-changes
3705
+ */
3706
+ 'react-you-might-not-need-an-effect/no-pass-live-state-to-parent'?: Linter.RuleEntry<[]>
3707
+ /**
3708
+ * Disallow resetting all state in an effect when a prop changes.
3709
+ * @see https://react.dev/learn/you-might-not-need-an-effect#resetting-all-state-when-a-prop-changes
3710
+ */
3711
+ 'react-you-might-not-need-an-effect/no-reset-all-state-when-a-prop-changes'?: Linter.RuleEntry<[]>
3675
3712
  /**
3676
3713
  * Enforces consistent naming for boolean props
3677
3714
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/boolean-prop-naming.md
package/dist/index.d.ts CHANGED
@@ -3668,10 +3668,47 @@ interface RuleOptions {
3668
3668
  */
3669
3669
  'react-x/use-jsx-vars'?: Linter.RuleEntry<[]>
3670
3670
  /**
3671
- * Catch unnecessary React useEffect hooks.
3672
- * @see https://react.dev/learn/you-might-not-need-an-effect
3671
+ * Disallow chaining state changes in an effect.
3672
+ * @see https://react.dev/learn/you-might-not-need-an-effect#chains-of-computations
3673
3673
  */
3674
- 'react-you-might-not-need-an-effect/you-might-not-need-an-effect'?: Linter.RuleEntry<[]>
3674
+ 'react-you-might-not-need-an-effect/no-chain-state-updates'?: Linter.RuleEntry<[]>
3675
+ /**
3676
+ * Disallow storing derived state in an effect.
3677
+ * @see https://react.dev/learn/you-might-not-need-an-effect#updating-state-based-on-props-or-state
3678
+ */
3679
+ 'react-you-might-not-need-an-effect/no-derived-state'?: Linter.RuleEntry<[]>
3680
+ /**
3681
+ * Disallow empty React effects.
3682
+ */
3683
+ 'react-you-might-not-need-an-effect/no-empty-effect'?: Linter.RuleEntry<[]>
3684
+ /**
3685
+ * Disallow using state and an effect as an event handler.
3686
+ * @see https://react.dev/learn/you-might-not-need-an-effect#sharing-logic-between-event-handlers
3687
+ */
3688
+ 'react-you-might-not-need-an-effect/no-event-handler'?: Linter.RuleEntry<[]>
3689
+ /**
3690
+ * Disallow initializing state in an effect.
3691
+ */
3692
+ 'react-you-might-not-need-an-effect/no-initialize-state'?: Linter.RuleEntry<[]>
3693
+ /**
3694
+ * Disallow effects that only use props.
3695
+ */
3696
+ 'react-you-might-not-need-an-effect/no-manage-parent'?: Linter.RuleEntry<[]>
3697
+ /**
3698
+ * Disallow passing data to parents in an effect.
3699
+ * @see https://react.dev/learn/you-might-not-need-an-effect#passing-data-to-the-parent
3700
+ */
3701
+ 'react-you-might-not-need-an-effect/no-pass-data-to-parent'?: Linter.RuleEntry<[]>
3702
+ /**
3703
+ * Disallow passing live state to parent components in an effect.
3704
+ * @see https://react.dev/learn/you-might-not-need-an-effect#notifying-parent-components-about-state-changes
3705
+ */
3706
+ 'react-you-might-not-need-an-effect/no-pass-live-state-to-parent'?: Linter.RuleEntry<[]>
3707
+ /**
3708
+ * Disallow resetting all state in an effect when a prop changes.
3709
+ * @see https://react.dev/learn/you-might-not-need-an-effect#resetting-all-state-when-a-prop-changes
3710
+ */
3711
+ 'react-you-might-not-need-an-effect/no-reset-all-state-when-a-prop-changes'?: Linter.RuleEntry<[]>
3675
3712
  /**
3676
3713
  * Enforces consistent naming for boolean props
3677
3714
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/boolean-prop-naming.md