eslint-plugin-th-rules 2.0.1 → 2.0.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [2.0.3](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v2.0.2...v2.0.3) (2026-01-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update dependencies for improved compatibility ([9415af9](https://github.com/tomerh2001/eslint-plugin-th-rules/commit/9415af9ac3ad24fcd606b7ed5455bf307c55fb69))
7
+
8
+ ## [2.0.2](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v2.0.1...v2.0.2) (2026-01-07)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * update 'recommended-react' config to use 'plugin:react/jsx-runtime' ([25a1ef1](https://github.com/tomerh2001/eslint-plugin-th-rules/commit/25a1ef18ce70104e8bb4521f265157270db79896))
14
+
1
15
  ## [2.0.1](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v2.0.0...v2.0.1) (2026-01-07)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-th-rules",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "A List of custom ESLint rules created by Tomer Horowitz",
5
5
  "keywords": [
6
6
  "eslint",
package/src/index.js CHANGED
@@ -124,15 +124,13 @@ plugin.configs['recommended-typescript'] = flatConfigs(
124
124
 
125
125
  plugin.configs['recommended-react'] = flatConfigs(
126
126
  plugin.configs.recommended,
127
-
128
- // IMPORTANT: Always use compat here so we never accidentally inject eslintrc-style
129
- // { plugins: ["react"] } into flat config (which causes the exact error you hit).
130
127
  compat.extends('plugin:react/recommended'),
128
+ compat.extends('plugin:react/jsx-runtime'),
131
129
  compat.extends('plugin:react-hooks/recommended'),
132
-
133
130
  {
134
131
  rules: {
135
132
  'n/prefer-global/process': 'off',
133
+ 'react-hooks/set-state-in-effect': 'off',
136
134
  },
137
135
  },
138
136
  );