eslint-plugin-react-hooks-extra 1.5.21-beta.4 → 1.5.21-next.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/dist/index.d.mts CHANGED
@@ -5,10 +5,10 @@ declare const meta: {
5
5
  readonly version: string;
6
6
  };
7
7
  declare const rules: {
8
- readonly "ensure-custom-hooks-using-other-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_CUSTOM_HOOKS_USING_OTHER_HOOKS", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
9
- readonly "ensure-use-callback-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
10
- readonly "ensure-use-memo-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
11
- readonly "prefer-use-state-lazy-initialization": _typescript_eslint_utils_ts_eslint.RuleModule<"PREFER_USE_STATE_LAZY_INITIALIZATION", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
8
+ readonly "ensure-custom-hooks-using-other-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_CUSTOM_HOOKS_USING_OTHER_HOOKS", [], _typescript_eslint_utils_ts_eslint.RuleListener>;
9
+ readonly "ensure-use-callback-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS", [], _typescript_eslint_utils_ts_eslint.RuleListener>;
10
+ readonly "ensure-use-memo-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS", [], _typescript_eslint_utils_ts_eslint.RuleListener>;
11
+ readonly "prefer-use-state-lazy-initialization": _typescript_eslint_utils_ts_eslint.RuleModule<"PREFER_USE_STATE_LAZY_INITIALIZATION", [], _typescript_eslint_utils_ts_eslint.RuleListener>;
12
12
  };
13
13
 
14
14
  export { meta, rules };
package/dist/index.d.ts CHANGED
@@ -5,10 +5,10 @@ declare const meta: {
5
5
  readonly version: string;
6
6
  };
7
7
  declare const rules: {
8
- readonly "ensure-custom-hooks-using-other-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_CUSTOM_HOOKS_USING_OTHER_HOOKS", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
9
- readonly "ensure-use-callback-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
10
- readonly "ensure-use-memo-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
11
- readonly "prefer-use-state-lazy-initialization": _typescript_eslint_utils_ts_eslint.RuleModule<"PREFER_USE_STATE_LAZY_INITIALIZATION", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
8
+ readonly "ensure-custom-hooks-using-other-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_CUSTOM_HOOKS_USING_OTHER_HOOKS", [], _typescript_eslint_utils_ts_eslint.RuleListener>;
9
+ readonly "ensure-use-callback-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS", [], _typescript_eslint_utils_ts_eslint.RuleListener>;
10
+ readonly "ensure-use-memo-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS", [], _typescript_eslint_utils_ts_eslint.RuleListener>;
11
+ readonly "prefer-use-state-lazy-initialization": _typescript_eslint_utils_ts_eslint.RuleModule<"PREFER_USE_STATE_LAZY_INITIALIZATION", [], _typescript_eslint_utils_ts_eslint.RuleListener>;
12
12
  };
13
13
 
14
14
  export { meta, rules };
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ var __export = (target, all2) => {
13
13
 
14
14
  // package.json
15
15
  var name = "eslint-plugin-react-hooks-extra";
16
- var version = "1.5.21-beta.4";
16
+ var version = "1.5.21-next.1";
17
17
  var createRule = shared.createRuleForPlugin("hooks-extra");
18
18
 
19
19
  // src/rules/ensure-custom-hooks-using-other-hooks.ts
@@ -22,7 +22,8 @@ var ensure_custom_hooks_using_other_hooks_default = createRule({
22
22
  meta: {
23
23
  type: "problem",
24
24
  docs: {
25
- description: "enforce custom hooks using other hooks"
25
+ description: "enforce custom hooks using other hooks",
26
+ requiresTypeChecking: false
26
27
  },
27
28
  messages: {
28
29
  ENSURE_CUSTOM_HOOKS_USING_OTHER_HOOKS: "A custom hook '{{name}}' should use other hooks"
@@ -1166,7 +1167,8 @@ var ensure_use_callback_has_non_empty_deps_default = createRule({
1166
1167
  meta: {
1167
1168
  type: "problem",
1168
1169
  docs: {
1169
- description: "enforce 'useCallback' has non-empty dependencies array"
1170
+ description: "enforce 'useCallback' has non-empty dependencies array",
1171
+ requiresTypeChecking: false
1170
1172
  },
1171
1173
  messages: {
1172
1174
  ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS: "An useCallback should have a non-empty dependencies array"
@@ -1216,7 +1218,8 @@ var ensure_use_memo_has_non_empty_deps_default = createRule({
1216
1218
  meta: {
1217
1219
  type: "problem",
1218
1220
  docs: {
1219
- description: "enforce 'useMemo' has non-empty dependencies array"
1221
+ description: "enforce 'useMemo' has non-empty dependencies array",
1222
+ requiresTypeChecking: false
1220
1223
  },
1221
1224
  messages: {
1222
1225
  ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS: "An useMemo should have a non-empty dependencies array"
@@ -1265,7 +1268,8 @@ var prefer_use_state_lazy_initialization_default = createRule({
1265
1268
  meta: {
1266
1269
  type: "problem",
1267
1270
  docs: {
1268
- description: "disallow function calls in 'useState' that aren't wrapped in an initializer function"
1271
+ description: "disallow function calls in 'useState' that aren't wrapped in an initializer function",
1272
+ requiresTypeChecking: false
1269
1273
  },
1270
1274
  messages: {
1271
1275
  PREFER_USE_STATE_LAZY_INITIALIZATION: "To prevent re-computation, consider using lazy initial state for useState calls that involve function calls. Ex: 'useState(() => getValue())'"
package/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ var __export = (target, all2) => {
11
11
 
12
12
  // package.json
13
13
  var name = "eslint-plugin-react-hooks-extra";
14
- var version = "1.5.21-beta.4";
14
+ var version = "1.5.21-next.1";
15
15
  var createRule = createRuleForPlugin("hooks-extra");
16
16
 
17
17
  // src/rules/ensure-custom-hooks-using-other-hooks.ts
@@ -20,7 +20,8 @@ var ensure_custom_hooks_using_other_hooks_default = createRule({
20
20
  meta: {
21
21
  type: "problem",
22
22
  docs: {
23
- description: "enforce custom hooks using other hooks"
23
+ description: "enforce custom hooks using other hooks",
24
+ requiresTypeChecking: false
24
25
  },
25
26
  messages: {
26
27
  ENSURE_CUSTOM_HOOKS_USING_OTHER_HOOKS: "A custom hook '{{name}}' should use other hooks"
@@ -1164,7 +1165,8 @@ var ensure_use_callback_has_non_empty_deps_default = createRule({
1164
1165
  meta: {
1165
1166
  type: "problem",
1166
1167
  docs: {
1167
- description: "enforce 'useCallback' has non-empty dependencies array"
1168
+ description: "enforce 'useCallback' has non-empty dependencies array",
1169
+ requiresTypeChecking: false
1168
1170
  },
1169
1171
  messages: {
1170
1172
  ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS: "An useCallback should have a non-empty dependencies array"
@@ -1214,7 +1216,8 @@ var ensure_use_memo_has_non_empty_deps_default = createRule({
1214
1216
  meta: {
1215
1217
  type: "problem",
1216
1218
  docs: {
1217
- description: "enforce 'useMemo' has non-empty dependencies array"
1219
+ description: "enforce 'useMemo' has non-empty dependencies array",
1220
+ requiresTypeChecking: false
1218
1221
  },
1219
1222
  messages: {
1220
1223
  ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS: "An useMemo should have a non-empty dependencies array"
@@ -1263,7 +1266,8 @@ var prefer_use_state_lazy_initialization_default = createRule({
1263
1266
  meta: {
1264
1267
  type: "problem",
1265
1268
  docs: {
1266
- description: "disallow function calls in 'useState' that aren't wrapped in an initializer function"
1269
+ description: "disallow function calls in 'useState' that aren't wrapped in an initializer function",
1270
+ requiresTypeChecking: false
1267
1271
  },
1268
1272
  messages: {
1269
1273
  PREFER_USE_STATE_LAZY_INITIALIZATION: "To prevent re-computation, consider using lazy initial state for useState calls that involve function calls. Ex: 'useState(() => getValue())'"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-hooks-extra",
3
- "version": "1.5.21-beta.4",
3
+ "version": "1.5.21-next.1",
4
4
  "description": "ESLint React's ESLint plugin for React Hooks related rules.",
5
5
  "homepage": "https://github.com/rel1cx/eslint-react",
6
6
  "bugs": {
@@ -35,17 +35,17 @@
35
35
  "./package.json"
36
36
  ],
37
37
  "dependencies": {
38
- "@typescript-eslint/scope-manager": "8.0.0-alpha.40",
39
- "@typescript-eslint/type-utils": "8.0.0-alpha.40",
40
- "@typescript-eslint/types": "8.0.0-alpha.40",
41
- "@typescript-eslint/utils": "8.0.0-alpha.40",
42
- "@eslint-react/ast": "1.5.21-beta.4",
43
- "@eslint-react/jsx": "1.5.21-beta.4",
44
- "@eslint-react/core": "1.5.21-beta.4",
45
- "@eslint-react/shared": "1.5.21-beta.4",
46
- "@eslint-react/tools": "1.5.21-beta.4",
47
- "@eslint-react/types": "1.5.21-beta.4",
48
- "@eslint-react/var": "1.5.21-beta.4"
38
+ "@typescript-eslint/scope-manager": "^7.15.0",
39
+ "@typescript-eslint/type-utils": "^7.15.0",
40
+ "@typescript-eslint/types": "^7.15.0",
41
+ "@typescript-eslint/utils": "^7.15.0",
42
+ "@eslint-react/ast": "1.5.21-next.1",
43
+ "@eslint-react/core": "1.5.21-next.1",
44
+ "@eslint-react/shared": "1.5.21-next.1",
45
+ "@eslint-react/tools": "1.5.21-next.1",
46
+ "@eslint-react/jsx": "1.5.21-next.1",
47
+ "@eslint-react/types": "1.5.21-next.1",
48
+ "@eslint-react/var": "1.5.21-next.1"
49
49
  },
50
50
  "devDependencies": {
51
51
  "dedent": "1.5.3",