eslint-plugin-react-hooks 7.0.0 → 7.0.1

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/index.d.ts CHANGED
@@ -5,4 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- export {default} from './cjs/eslint-plugin-react-hooks';
8
+ import reactHooks from './cjs/eslint-plugin-react-hooks';
9
+
10
+ export = reactHooks;
package/index.js CHANGED
@@ -14,3 +14,13 @@ if (process.env.NODE_ENV === 'production') {
14
14
  } else {
15
15
  module.exports = require('./cjs/eslint-plugin-react-hooks.development.js');
16
16
  }
17
+
18
+ // Hint to Node’s cjs-module-lexer to make named imports work
19
+ // https://github.com/facebook/react/issues/34801#issuecomment-3433478810
20
+ // eslint-disable-next-line ft-flow/no-unused-expressions
21
+ 0 &&
22
+ (module.exports = {
23
+ meta: true,
24
+ rules: true,
25
+ configs: true,
26
+ });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-hooks",
3
3
  "description": "ESLint rules for React Hooks",
4
- "version": "7.0.0",
4
+ "version": "7.0.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/facebook/react.git",
@@ -42,8 +42,8 @@
42
42
  "@babel/core": "^7.24.4",
43
43
  "@babel/parser": "^7.24.4",
44
44
  "hermes-parser": "^0.25.1",
45
- "zod": "^3.22.4 || ^4.0.0",
46
- "zod-validation-error": "^3.0.3 || ^4.0.0"
45
+ "zod": "^3.25.0 || ^4.0.0",
46
+ "zod-validation-error": "^3.5.0 || ^4.0.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@babel/eslint-parser": "^7.11.4",