eslint-plugin-th-rules 2.0.0 → 2.0.2

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.2](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v2.0.1...v2.0.2) (2026-01-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update 'recommended-react' config to use 'plugin:react/jsx-runtime' ([25a1ef1](https://github.com/tomerh2001/eslint-plugin-th-rules/commit/25a1ef18ce70104e8bb4521f265157270db79896))
7
+
8
+ ## [2.0.1](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v2.0.0...v2.0.1) (2026-01-07)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * modify 'lodash/import-scope' rule in base recommended configuration ([4add1ee](https://github.com/tomerh2001/eslint-plugin-th-rules/commit/4add1ee31f966875bc8c848328676819548a21fe))
14
+
1
15
  # [2.0.0](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v1.21.0...v2.0.0) (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.0",
3
+ "version": "2.0.2",
4
4
  "description": "A List of custom ESLint rules created by Tomer Horowitz",
5
5
  "keywords": [
6
6
  "eslint",
package/src/index.js CHANGED
@@ -82,6 +82,8 @@ const baseRecommended = {
82
82
  'unicorn/prefer-global-this': 'off',
83
83
  'unicorn/no-thenable': 'off',
84
84
  'sonarjs/no-clear-text-protocols': 'off',
85
+
86
+ 'lodash/import-scope': [2, 'full'],
85
87
  },
86
88
  };
87
89
 
@@ -122,12 +124,9 @@ plugin.configs['recommended-typescript'] = flatConfigs(
122
124
 
123
125
  plugin.configs['recommended-react'] = flatConfigs(
124
126
  plugin.configs.recommended,
125
-
126
- // IMPORTANT: Always use compat here so we never accidentally inject eslintrc-style
127
- // { plugins: ["react"] } into flat config (which causes the exact error you hit).
128
127
  compat.extends('plugin:react/recommended'),
128
+ compat.extends('plugin:react/jsx-runtime'),
129
129
  compat.extends('plugin:react-hooks/recommended'),
130
-
131
130
  {
132
131
  rules: {
133
132
  'n/prefer-global/process': 'off',