From 7363d776287c7b6d9d7632227287f5924daa0d12 Mon Sep 17 00:00:00 2001 From: Ryan Albrecht Date: Wed, 24 Jun 2026 10:39:32 -0700 Subject: [PATCH] build(deps): Bump eslint-plugin-react-you-might-not-need-an-effect to 1.0.1 Update eslint-plugin-react-you-might-not-need-an-effect from 0.5.3 to 1.0.1. The 1.0 release removed the no-empty-effect and no-manage-parent rules and added a new recommended no-external-store-subscription rule. Update the flat config accordingly: drop the two removed rule references (which would otherwise error) and disable the new rule to preserve the existing behavior of enabling only no-derived-state. Co-Authored-By: Claude Opus 4.8 --- eslint.config.ts | 3 +-- package.json | 2 +- pnpm-lock.yaml | 28 +++++----------------------- 3 files changed, 7 insertions(+), 26 deletions(-) diff --git a/eslint.config.ts b/eslint.config.ts index fdd81c1efd2ae7..abbc2607c70fc5 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -959,8 +959,7 @@ export default typescript.config([ 'react-you-might-not-need-an-effect/no-pass-live-state-to-parent': 'off', 'react-you-might-not-need-an-effect/no-pass-data-to-parent': 'off', 'react-you-might-not-need-an-effect/no-initialize-state': 'off', - 'react-you-might-not-need-an-effect/no-manage-parent': 'off', - 'react-you-might-not-need-an-effect/no-empty-effect': 'off', + 'react-you-might-not-need-an-effect/no-external-store-subscription': 'off', }, }, { diff --git a/package.json b/package.json index fd2b64e1ca3b2e..02670ca4634595 100644 --- a/package.json +++ b/package.json @@ -269,7 +269,7 @@ "eslint-plugin-no-relative-import-paths": "^1.6.1", "eslint-plugin-react": "7.37.5", "eslint-plugin-react-hooks": "6.1.0", - "eslint-plugin-react-you-might-not-need-an-effect": "0.5.3", + "eslint-plugin-react-you-might-not-need-an-effect": "1.0.1", "eslint-plugin-regexp": "^3.0.0", "eslint-plugin-testing-library": "^7.16.2", "eslint-plugin-typescript-sort-keys": "^3.3.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 852f8dbad943d5..1cbd8532935647 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -666,8 +666,8 @@ importers: specifier: 6.1.0 version: 6.1.0(eslint@9.34.0(jiti@2.7.0)) eslint-plugin-react-you-might-not-need-an-effect: - specifier: 0.5.3 - version: 0.5.3(eslint@9.34.0(jiti@2.7.0)) + specifier: 1.0.1 + version: 1.0.1(eslint@9.34.0(jiti@2.7.0)) eslint-plugin-regexp: specifier: ^3.0.0 version: 3.0.0(eslint@9.34.0(jiti@2.7.0)) @@ -5514,8 +5514,8 @@ packages: peerDependencies: eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 - eslint-plugin-react-you-might-not-need-an-effect@0.5.3: - resolution: {integrity: sha512-/tkUN71PIp5+LVSDb9y3MA4zMyjVGJojfWCeC2NSWhRRBbc0NRR8WnFXe2h3bw6tTcYMack/dlHME5YVu/0Fmw==} + eslint-plugin-react-you-might-not-need-an-effect@1.0.1: + resolution: {integrity: sha512-oOhQTYhor88Xp8RVytq25tvBfiAjU0r9SCDC51Qop+3Wg5BR1xGMAkM+/dV4MZbcMhdaU1L9bkv6LC95JmiTig==} engines: {node: '>=14.0.0'} peerDependencies: eslint: '>=8.40.0' @@ -5560,16 +5560,6 @@ packages: resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - eslint-utils@3.0.0: - resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==} - engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0} - peerDependencies: - eslint: '>=5' - - eslint-visitor-keys@2.1.0: - resolution: {integrity: sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==} - engines: {node: '>=10'} - eslint-visitor-keys@3.4.3: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -14560,10 +14550,9 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-react-you-might-not-need-an-effect@0.5.3(eslint@9.34.0(jiti@2.7.0)): + eslint-plugin-react-you-might-not-need-an-effect@1.0.1(eslint@9.34.0(jiti@2.7.0)): dependencies: eslint: 9.34.0(jiti@2.7.0) - eslint-utils: 3.0.0(eslint@9.34.0(jiti@2.7.0)) globals: 16.3.0 eslint-plugin-react@7.37.5(eslint@9.34.0(jiti@2.7.0)): @@ -14649,13 +14638,6 @@ snapshots: esrecurse: 4.3.0 estraverse: 5.3.0 - eslint-utils@3.0.0(eslint@9.34.0(jiti@2.7.0)): - dependencies: - eslint: 9.34.0(jiti@2.7.0) - eslint-visitor-keys: 2.1.0 - - eslint-visitor-keys@2.1.0: {} - eslint-visitor-keys@3.4.3: {} eslint-visitor-keys@4.2.1: {}