From d2d1037e01e44e2c0b520753d4f0bd15c7de0a89 Mon Sep 17 00:00:00 2001 From: NikSimonov Date: Tue, 4 Nov 2025 14:39:38 +0200 Subject: [PATCH 1/2] VER/9.63.0 --- .../rules/eslint-plugin-react-hooks/index.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/eslint-configs/eslint-config-seekingalpha-react/rules/eslint-plugin-react-hooks/index.js b/eslint-configs/eslint-config-seekingalpha-react/rules/eslint-plugin-react-hooks/index.js index b7582b09..00e0c6ec 100644 --- a/eslint-configs/eslint-config-seekingalpha-react/rules/eslint-plugin-react-hooks/index.js +++ b/eslint-configs/eslint-config-seekingalpha-react/rules/eslint-plugin-react-hooks/index.js @@ -12,5 +12,22 @@ export default { // https://reactjs.org/docs/hooks-rules.html 'react-hooks/exhaustive-deps': 'error', + + // React Compiler rules + 'react-hooks/config': 'error', + 'react-hooks/error-boundaries': 'error', + 'react-hooks/component-hook-factories': 'error', + 'react-hooks/gating': 'error', + 'react-hooks/globals': 'error', + 'react-hooks/immutability': 'error', + 'react-hooks/preserve-manual-memoization': 'error', + 'react-hooks/purity': 'error', + 'react-hooks/refs': 'error', + 'react-hooks/set-state-in-effect': 'error', + 'react-hooks/set-state-in-render': 'error', + 'react-hooks/static-components': 'error', + 'react-hooks/unsupported-syntax': 'warn', + 'react-hooks/use-memo': 'error', + 'react-hooks/incompatible-library': 'warn', }, }; From 7b19ae5f67be2dd2eb1e536bb7bd8c19f15b3694 Mon Sep 17 00:00:00 2001 From: Aleksey Kovalevsky Date: Tue, 4 Nov 2025 14:55:33 +0200 Subject: [PATCH 2/2] eslint-config-seekingalpha-react ver. 10.24.0 - [breaking] extend `eslint-plugin-react-hooks` rules --- eslint-configs/eslint-config-seekingalpha-react/CHANGELOG.md | 4 ++++ eslint-configs/eslint-config-seekingalpha-react/package.json | 2 +- .../rules/eslint-plugin-react-hooks/index.js | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/eslint-configs/eslint-config-seekingalpha-react/CHANGELOG.md b/eslint-configs/eslint-config-seekingalpha-react/CHANGELOG.md index f501c3bf..4899f0c2 100644 --- a/eslint-configs/eslint-config-seekingalpha-react/CHANGELOG.md +++ b/eslint-configs/eslint-config-seekingalpha-react/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 10.24.0 - 2025-11-04 + +- [breaking] extend `eslint-plugin-react-hooks` rules + ## 10.23.0 - 2025-11-04 - [deps] upgrade `eslint` to version `9.39.1` diff --git a/eslint-configs/eslint-config-seekingalpha-react/package.json b/eslint-configs/eslint-config-seekingalpha-react/package.json index e0049d78..24cd6bd0 100644 --- a/eslint-configs/eslint-config-seekingalpha-react/package.json +++ b/eslint-configs/eslint-config-seekingalpha-react/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-seekingalpha-react", - "version": "10.23.0", + "version": "10.24.0", "description": "SeekingAlpha's sharable React.js ESLint config", "main": "index.js", "type": "module", diff --git a/eslint-configs/eslint-config-seekingalpha-react/rules/eslint-plugin-react-hooks/index.js b/eslint-configs/eslint-config-seekingalpha-react/rules/eslint-plugin-react-hooks/index.js index 00e0c6ec..9c6b7521 100644 --- a/eslint-configs/eslint-config-seekingalpha-react/rules/eslint-plugin-react-hooks/index.js +++ b/eslint-configs/eslint-config-seekingalpha-react/rules/eslint-plugin-react-hooks/index.js @@ -26,8 +26,8 @@ export default { 'react-hooks/set-state-in-effect': 'error', 'react-hooks/set-state-in-render': 'error', 'react-hooks/static-components': 'error', - 'react-hooks/unsupported-syntax': 'warn', + 'react-hooks/unsupported-syntax': 'error', 'react-hooks/use-memo': 'error', - 'react-hooks/incompatible-library': 'warn', + 'react-hooks/incompatible-library': 'error', }, };